SendPlayerHPOrDie everytime at client connection, damage enabled or not, this will fix the player which stay dead at connection
parent
e4f7c92cff
commit
b2801d8127
|
@ -1099,8 +1099,7 @@ PlayerSAO* Server::StageTwoClientInit(u16 peer_id)
|
||||||
SendInventory(playersao);
|
SendInventory(playersao);
|
||||||
|
|
||||||
// Send HP
|
// Send HP
|
||||||
if(g_settings->getBool("enable_damage"))
|
SendPlayerHPOrDie(peer_id, playersao->getHP() == 0);
|
||||||
SendPlayerHP(peer_id);
|
|
||||||
|
|
||||||
// Send Breath
|
// Send Breath
|
||||||
SendPlayerBreath(peer_id);
|
SendPlayerBreath(peer_id);
|
||||||
|
|
Loading…
Reference in New Issue