summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 00:48:39 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 00:48:39 +0300
commit873d1fdb25b495633a45915f7f1dd6643cc807c8 (patch)
treee2ffad32e3b2e2ba495a06c7bd345755492f6ce6
parent2d07e4b837ee631a73dd2319f9bec9429556ed0a (diff)
downloadplus-873d1fdb25b495633a45915f7f1dd6643cc807c8.tar.gz
plus-873d1fdb25b495633a45915f7f1dd6643cc807c8.tar.bz2
plus-873d1fdb25b495633a45915f7f1dd6643cc807c8.tar.xz
plus-873d1fdb25b495633a45915f7f1dd6643cc807c8.zip
Add ifdef for tmwa only in call to serverFeatures->haveServerHp.
-rw-r--r--src/being/being.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index eef9b1d40..6ed83429e 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -4093,6 +4093,7 @@ void Being::drawHpBar(Graphics *restrict const graphics,
const int dx = static_cast<const int>(static_cast<float>(width) / p);
+#ifdef TMWA_SUPPORT
if (!serverFeatures->haveServerHp())
{ // old servers
if ((!damage && (this != localPlayer || hp == maxHP))
@@ -4112,6 +4113,7 @@ void Being::drawHpBar(Graphics *restrict const graphics,
}
}
else
+#endif // TMWA_SUPPORT
{
if (hp == maxHP)
{