diff options
author | Stijn Buys <ingar@osirion.org> | 2009-03-07 13:57:09 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-03-07 13:57:09 +0000 |
commit | 4c53365c16362156529c7669079e31845384589f (patch) | |
tree | 193bb5d05299d2acb38311d108c1d39b6e1dd229 /src/client/map.cc | |
parent | ee2200638be3fcb14097f3e8b0abb93e210f93d9 (diff) |
renamed Entity::eventstate() to Entity::state(),
introduced Destroyed state
Diffstat (limited to 'src/client/map.cc')
-rw-r--r-- | src/client/map.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |