diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-01 00:48:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-01 00:48:39 +0300 |
commit | 873d1fdb25b495633a45915f7f1dd6643cc807c8 (patch) | |
tree | e2ffad32e3b2e2ba495a06c7bd345755492f6ce6 /src | |
parent | 2d07e4b837ee631a73dd2319f9bec9429556ed0a (diff) | |
download | manaverse-873d1fdb25b495633a45915f7f1dd6643cc807c8.tar.gz manaverse-873d1fdb25b495633a45915f7f1dd6643cc807c8.tar.bz2 manaverse-873d1fdb25b495633a45915f7f1dd6643cc807c8.tar.xz manaverse-873d1fdb25b495633a45915f7f1dd6643cc807c8.zip |
Add ifdef for tmwa only in call to serverFeatures->haveServerHp.
Diffstat (limited to 'src')
-rw-r--r-- | src/being/being.cpp | 2 |
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) { |