Skip to content

Commit 5e075c3

Browse files
gregorycuZeno-
authored andcommittedFeb 5, 2015
Fix dying of lava causes repeated death This is a bugfix for issue #81
1 parent b56f117 commit 5e075c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

Diff for: ‎src/environment.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -2567,6 +2567,8 @@ void ClientEnvironment::damageLocalPlayer(u8 damage, bool handle_hp)
25672567
assert(lplayer);
25682568

25692569
if(handle_hp){
2570+
if (lplayer->hp == 0) // Don't damage a dead player
2571+
return;
25702572
if(lplayer->hp > damage)
25712573
lplayer->hp -= damage;
25722574
else

0 commit comments

Comments
 (0)
Please sign in to comment.