diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-02-06 04:18:16 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-02-06 04:18:16 +0000 |
commit | 323b0e57c673035ad8065c7daf399124f15c24d4 (patch) | |
tree | b1fba9f0c2e9f7d7cccb6a083a2c5b862d91901b /src/being.cpp | |
parent | e2c61ef8ec4f8685c0eafa2284c7485cec489021 (diff) | |
download | mana-323b0e57c673035ad8065c7daf399124f15c24d4.tar.gz mana-323b0e57c673035ad8065c7daf399124f15c24d4.tar.bz2 mana-323b0e57c673035ad8065c7daf399124f15c24d4.tar.xz mana-323b0e57c673035ad8065c7daf399124f15c24d4.zip |
Use virtual methods instead of getType() checks.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/being.cpp b/src/being.cpp index b417fc34..3570fe30 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -218,19 +218,6 @@ Being::logic() } void -Being::drawName(Graphics *graphics, Sint32 offsetX, Sint32 offsetY) -{ - int px = mPx + offsetX; - int py = mPy + offsetY; - - // Draw player name - if (getType() != LOCALPLAYER) { - graphics->setFont(speechFont); - graphics->drawText(mName, px + 15, py + 30, gcn::Graphics::CENTER); - } -} - -void Being::drawEmotion(Graphics *graphics, Sint32 offsetX, Sint32 offsetY) { int px = mPx + offsetX; |