From 812bb37b7e73104d97da35eb3e66046495aaa305 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 25 Jul 2008 18:30:10 +0000 Subject: minor cleanups --- src/client/targets.cc | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src/client') diff --git a/src/client/targets.cc b/src/client/targets.cc index 9dd508b..d1bed10 100644 --- a/src/client/targets.cc +++ b/src/client/targets.cc @@ -281,7 +281,7 @@ void draw() cursor -= render::Camera::axis().up() * y; math::Vector3f center = render::Camera::eye() + (render::Camera::axis().forward() * (render::Camera::frustum_front() +0.01f)); - for (std::map::iterator it=core::Entity::registry.begin(); it != core::Entity::registry.end(); it++) { + for (core::Entity::Registry::iterator it=core::Entity::registry.begin(); it != core::Entity::registry.end(); it++) { core::Entity *entity = (*it).second; // render entity sound @@ -350,23 +350,6 @@ void draw() render::gl::end(); } } - -/* - math::Color color(1, 1, 1, 1); - core::Cvar *cl_crosshaircolor = core::Cvar::get("cl_crosshaircolor", "1 1 1"); - if (cl_crosshaircolor) { - std::stringstream colorstr(cl_crosshaircolor->str()); - colorstr >> color; - } - const float r = 0.05; - render::gl::color(color); - render::gl::begin(render::gl::LineLoop); - render::gl::vertex(cursorposition + render::Camera::axis().up() * r); - render::gl::vertex(cursorposition + render::Camera::axis().left() * r); - render::gl::vertex(cursorposition - render::Camera::axis().up() * r); - render::gl::vertex(cursorposition - render::Camera::axis().left() * r); - render::gl::end(); -*/ } } -- cgit v1.2.3