Skip to content
Snippets Groups Projects
Commit b2801d81 authored by Loïc Blot's avatar Loïc Blot
Browse files

SendPlayerHPOrDie everytime at client connection, damage enabled or not, this...

SendPlayerHPOrDie everytime at client connection, damage enabled or not, this will fix the player which stay dead at connection
parent e4f7c92c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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