From 4c53365c16362156529c7669079e31845384589f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 7 Mar 2009 13:57:09 +0000 Subject: renamed Entity::eventstate() to Entity::state(), introduced Destroyed state --- src/client/map.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/client/map.cc') diff --git a/src/client/map.cc b/src/client/map.cc index e433d40..35a1be7 100644 --- a/src/client/map.cc +++ b/src/client/map.cc @@ -61,7 +61,7 @@ void Map::draw() if (h > s ) { v.y += (h-s) * 0.5f; } else { - v.x += (w-s) * 0.5f; + //v.x += (w-s) * 0.5f; } gl::color(0,0,blue); @@ -121,6 +121,9 @@ void Map::draw() if (entity == core::localcontrol()) { draw_icon = true; + l.x -= s / scale * entity->location().y; + l.y -= s / scale * entity->location().x; + if (core::application()->time() - floorf(core::application()->time()) < 0.5f) { draw_icon = false; } -- cgit v1.2.3