summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-07-03 10:40:06 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-07-03 10:40:06 +0000
commit4f40a1bcbdc27affb96737f5f5dc0c086d1031ce (patch)
treeaa693beedd08e925b5e5ef9364bfcaed3e945edc /src/being.cpp
parent79d63d624b44faa4085bd82eaa3519df77bbb58b (diff)
downloadmana-client-4f40a1bcbdc27affb96737f5f5dc0c086d1031ce.tar.gz
mana-client-4f40a1bcbdc27affb96737f5f5dc0c086d1031ce.tar.bz2
mana-client-4f40a1bcbdc27affb96737f5f5dc0c086d1031ce.tar.xz
mana-client-4f40a1bcbdc27affb96737f5f5dc0c086d1031ce.zip
- Commenting out buddy and new skills windows
- Some code cleaning - Workaround for colored text not being displayed in SDL mode (disabled)
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 770a5c5a..cd0a31c9 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -346,6 +346,7 @@ void Being::drawSpeech(Graphics *graphics)
gcn::Graphics::CENTER);
}
if (showDamage) {
+#ifdef USE_OPENGL
// Selecting the right color
if (damage == "miss")
{
@@ -359,6 +360,7 @@ void Being::drawSpeech(Graphics *graphics)
{
graphics->setFont(hitRedFont);
}
+#endif
int textX = 0;
int textY = 0;
@@ -370,7 +372,7 @@ void Being::drawSpeech(Graphics *graphics)
textX = 60;
textY = 0;
}
-
+
graphics->drawText(damage,
text_x + textX,
text_y - textY - get_elapsed_time(damage_time) / 100,