summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-10-09 12:35:46 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-10-09 12:35:46 +0000
commitff4d98eeee5a5a799039549c6df885a5208b792f (patch)
tree1e3a770cac29ed3f3e2d2f7b62e6286d8d5bb24d /src/being.cpp
parent6f706879515b4e37a78994aaae6b0e36d00b5f32 (diff)
downloadmana-ff4d98eeee5a5a799039549c6df885a5208b792f.tar.gz
mana-ff4d98eeee5a5a799039549c6df885a5208b792f.tar.bz2
mana-ff4d98eeee5a5a799039549c6df885a5208b792f.tar.xz
mana-ff4d98eeee5a5a799039549c6df885a5208b792f.zip
Fixed display of [TARGET] and Alt keys for toggling windows.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 9f9c7834..9dccb5f6 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -427,6 +427,16 @@ void Being::drawSpeech(Graphics *graphics, Sint32 offsetX, Sint32 offsetY)
gcn::Graphics::CENTER);
}
+ // Potentially draw [TARGET] above this being
+ if (this == autoTarget)
+ {
+ graphics->setFont(speechFont);
+ int dy = (getType() == PLAYER) ? 90 : 52;
+
+ graphics->drawText("[TARGET]", px + 15, py - dy,
+ gcn::Graphics::CENTER);
+ }
+
// Draw player name
if (getType() == PLAYER && this != player_node)
{