Skip to content
Snippets Groups Projects
Commit 5e075c33 authored by gregorycu's avatar gregorycu Committed by Zeno-
Browse files

Fix dying of lava causes repeated death This is a bugfix for issue #81

parent b56f1175
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment