aboutsummaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-03-15 19:09:26 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-15 19:09:26 +0100
commitb2801d8127f4b25fd96f981974763f33bc7ff42b (patch)
tree6911b2904a0e91b59017d1842a066551864d8402 /src/server.cpp
parente4f7c92cff0badd6c40b47bd90b1fc1b35456a1a (diff)
downloadminetest-b2801d8127f4b25fd96f981974763f33bc7ff42b.tar.gz
minetest-b2801d8127f4b25fd96f981974763f33bc7ff42b.tar.bz2
minetest-b2801d8127f4b25fd96f981974763f33bc7ff42b.zip
SendPlayerHPOrDie everytime at client connection, damage enabled or not, this will fix the player which stay dead at connection
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 8f2ec05ba..6f384e743 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -1099,8 +1099,7 @@ PlayerSAO* Server::StageTwoClientInit(u16 peer_id)
SendInventory(playersao);
// Send HP
- if(g_settings->getBool("enable_damage"))
- SendPlayerHP(peer_id);
+ SendPlayerHPOrDie(peer_id, playersao->getHP() == 0);
// Send Breath
SendPlayerBreath(peer_id);