Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-25 18:30:10 +0000
committerStijn Buys <ingar@osirion.org>2008-07-25 18:30:10 +0000
commit812bb37b7e73104d97da35eb3e66046495aaa305 (patch)
tree63ee32e2c53d35aeb3dc219c8caa211de5fbf0cd /src/client
parentabe6c3dc6e6f9df40345d6aaf19f12fdfa3f3024 (diff)
minor cleanups
Diffstat (limited to 'src/client')
-rw-r--r--src/client/targets.cc19
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();
-*/
}
}