aboutsummaryrefslogtreecommitdiff
path: root/src/client/localplayer.h
diff options
context:
space:
mode:
authorANAND <ClobberXD@gmail.com>2019-08-21 18:34:47 +0530
committersfan5 <sfan5@live.de>2019-09-14 20:16:55 +0200
commite2d6445f2a64c45437f9762b891413142c4a66a3 (patch)
treea0fd8d7160f1647b9f65199edfec6fa1fffc7b59 /src/client/localplayer.h
parent81c7f0ae044b1131ad082e5e705c5276f82ac6ce (diff)
downloadhax-minetest-server-e2d6445f2a64c45437f9762b891413142c4a66a3.tar.gz
hax-minetest-server-e2d6445f2a64c45437f9762b891413142c4a66a3.zip
Fix LocalPlayer::isDead always returning false if player is immortal
Diffstat (limited to 'src/client/localplayer.h')
-rw-r--r--src/client/localplayer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/localplayer.h b/src/client/localplayer.h
index 252519aaa..539f1ba2a 100644
--- a/src/client/localplayer.h
+++ b/src/client/localplayer.h
@@ -149,7 +149,7 @@ public:
bool getAutojump() const { return m_autojump; }
- bool isDead() const { return hp <= 0; }
+ bool isDead() const;
inline void addVelocity(const v3f &vel)
{