summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorMatthias Hartmann <hartmann.matthias@gmail.com>2005-09-17 16:42:34 +0000
committerMatthias Hartmann <hartmann.matthias@gmail.com>2005-09-17 16:42:34 +0000
commitdb1f671668a615c5e1a4f48009708407bbac8d8c (patch)
treeb10ef65f484c27facc224bfc62c360e9caacaa7e /src/engine.cpp
parent7d7ea134637eb06e194068f157d3eead90115631 (diff)
downloadmana-db1f671668a615c5e1a4f48009708407bbac8d8c.tar.gz
mana-db1f671668a615c5e1a4f48009708407bbac8d8c.tar.bz2
mana-db1f671668a615c5e1a4f48009708407bbac8d8c.tar.xz
mana-db1f671668a615c5e1a4f48009708407bbac8d8c.zip
Added PVP
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 7642ef6c..8194e00b 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -468,10 +468,20 @@ void Engine::draw()
}
if (autoTarget) {
- graphics->drawText("[TARGET]",
- autoTarget->text_x + 60,
- autoTarget->text_y,
- gcn::Graphics::CENTER);
+ if (autoTarget->getType() == Being::PLAYER)
+ {
+ graphics->drawText("[TARGET]",
+ autoTarget->text_x+15,
+ autoTarget->text_y-60,
+ gcn::Graphics::CENTER);
+
+ } else {
+
+ graphics->drawText("[TARGET]",
+ autoTarget->text_x + 60,
+ autoTarget->text_y,
+ gcn::Graphics::CENTER);
+ }
}
#ifdef DEBUG