diff options
author | PilzAdam <PilzAdam@gmx.de> | 2013-01-06 15:32:23 +0100 |
---|---|---|
committer | PilzAdam <PilzAdam@gmx.de> | 2013-01-07 18:39:45 +0100 |
commit | 8aa190606e63cd5f27dbab27d2e4c7a70cd1e1ef (patch) | |
tree | 64cc05fe49c0b4c928b92aff116ae3ecbe8b3d01 /src/game.cpp | |
parent | 0437abbffbcff46e33de14c0baedc676f14e7507 (diff) | |
download | minetest-8aa190606e63cd5f27dbab27d2e4c7a70cd1e1ef.tar.gz minetest-8aa190606e63cd5f27dbab27d2e4c7a70cd1e1ef.tar.bz2 minetest-8aa190606e63cd5f27dbab27d2e4c7a70cd1e1ef.zip |
Disable all HP handling if enable_damage is false
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index c8f1d2187..bed99837d 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2099,7 +2099,8 @@ void the_game( { break; } - else if(event.type == CE_PLAYER_DAMAGE) + else if(event.type == CE_PLAYER_DAMAGE && + client.getHP() != 0) { //u16 damage = event.player_damage.amount; //infostream<<"Player damage: "<<damage<<std::endl; |