diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/targets.cc | 19 |
1 files changed, 1 insertions, 18 deletions
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<unsigned int, core::Entity *>::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(); -*/ } } |