diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-02-11 00:03:26 +0100 |
---|---|---|
committer | Paramat <paramat@users.noreply.github.com> | 2019-02-10 23:03:26 +0000 |
commit | ffb17f1c9a203fea6de70159b461f52d104e05b9 (patch) | |
tree | ca2c9f26515b8c6dad2a42b7e09f5d2a91d6f398 /src/client/hud.cpp | |
parent | ba5a9f2b361a2fa01d1a3396999a5833983c0f4a (diff) | |
download | minetest-ffb17f1c9a203fea6de70159b461f52d104e05b9.tar.gz minetest-ffb17f1c9a203fea6de70159b461f52d104e05b9.tar.bz2 minetest-ffb17f1c9a203fea6de70159b461f52d104e05b9.zip |
Consistent HP and damage types (#8167)
Remove deprecated HUDs and chat message handling.
Remove unused m_damage variable (compat break).
HP: s32 for setter/calculations, u16 for getter.
Diffstat (limited to 'src/client/hud.cpp')
-rw-r--r-- | src/client/hud.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/client/hud.cpp b/src/client/hud.cpp index fffe85e1d..1a2287a13 100644 --- a/src/client/hud.cpp +++ b/src/client/hud.cpp @@ -475,25 +475,6 @@ void Hud::drawHotbar(u16 playeritem) { hotbar_itemcount / 2, mainlist, playeritem + 1, 0); } } - - //////////////////////////// compatibility code to be removed ////////////// - // this is ugly as hell but there's no other way to keep compatibility to - // old servers - if ((player->hud_flags & HUD_FLAG_HEALTHBAR_VISIBLE)) { - drawStatbar(v2s32(floor(0.5 * (float)m_screensize.X + 0.5), - floor(1 * (float) m_screensize.Y + 0.5)), - HUD_CORNER_UPPER, 0, "heart.png", - player->hp, v2s32((-10*24)-25,-(48+24+10)), v2s32(24,24)); - } - - if ((player->hud_flags & HUD_FLAG_BREATHBAR_VISIBLE) && - (player->getBreath() < 11)) { - drawStatbar(v2s32(floor(0.5 * (float)m_screensize.X + 0.5), - floor(1 * (float) m_screensize.Y + 0.5)), - HUD_CORNER_UPPER, 0, "bubble.png", - player->getBreath(), v2s32(25,-(48+24+10)), v2s32(24,24)); - } - //////////////////////////////////////////////////////////////////////////// } |