From e2d6445f2a64c45437f9762b891413142c4a66a3 Mon Sep 17 00:00:00 2001 From: ANAND Date: Wed, 21 Aug 2019 18:34:47 +0530 Subject: Fix LocalPlayer::isDead always returning false if player is immortal --- src/client/localplayer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/localplayer.h') 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) { -- cgit v1.2.3