From: gregorycu Date: Mon, 2 Feb 2015 14:26:03 +0000 (+1100) Subject: Fix dying of lava causes repeated death This is a bugfix for issue #81 X-Git-Tag: 0.4.12~34 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5e075c3344911176421be3ae08e2bdc432a83b8f;p=oweals%2Fminetest.git Fix dying of lava causes repeated death This is a bugfix for issue #81 --- diff --git a/src/environment.cpp b/src/environment.cpp index ee4488476..e1f79803b 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -2567,6 +2567,8 @@ void ClientEnvironment::damageLocalPlayer(u8 damage, bool handle_hp) assert(lplayer); if(handle_hp){ + if (lplayer->hp == 0) // Don't damage a dead player + return; if(lplayer->hp > damage) lplayer->hp -= damage; else