From b2801d8127f4b25fd96f981974763f33bc7ff42b Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Sun, 15 Mar 2015 19:09:26 +0100 Subject: SendPlayerHPOrDie everytime at client connection, damage enabled or not, this will fix the player which stay dead at connection --- src/server.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3