diff options
Diffstat (limited to 'src/client/localplayer.cpp')
-rw-r--r-- | src/client/localplayer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/localplayer.cpp b/src/client/localplayer.cpp index 1b0b667c8..3007a86e3 100644 --- a/src/client/localplayer.cpp +++ b/src/client/localplayer.cpp @@ -732,6 +732,11 @@ v3f LocalPlayer::getEyeOffset() const return v3f(0, BS * eye_height, 0); } +bool LocalPlayer::isDead() const +{ + return !getCAO()->isImmortal() && hp == 0; +} + // 3D acceleration void LocalPlayer::accelerate(const v3f &target_speed, const f32 max_increase_H, const f32 max_increase_V, const bool use_pitch) |