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>2009-03-07 13:57:09 +0000
committerStijn Buys <ingar@osirion.org>2009-03-07 13:57:09 +0000
commit4c53365c16362156529c7669079e31845384589f (patch)
tree193bb5d05299d2acb38311d108c1d39b6e1dd229 /src/client/map.cc
parentee2200638be3fcb14097f3e8b0abb93e210f93d9 (diff)
renamed Entity::eventstate() to Entity::state(),
introduced Destroyed state
Diffstat (limited to 'src/client/map.cc')
-rw-r--r--src/client/map.cc5
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;
}