From 873d1fdb25b495633a45915f7f1dd6643cc807c8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 May 2017 00:48:39 +0300 Subject: Add ifdef for tmwa only in call to serverFeatures->haveServerHp. --- src/being/being.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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(static_cast(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) { -- cgit v1.2.3-70-g09d2