1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Use the new Player::isDead function when it's the case

This commit is contained in:
Loic Blot 2015-03-13 08:57:19 +01:00
parent 7c19933a8c
commit 4e63c977c7
3 changed files with 13 additions and 7 deletions

View file

@ -1106,7 +1106,7 @@ PlayerSAO* Server::StageTwoClientInit(u16 peer_id)
SendPlayerBreath(peer_id);
// Show death screen if necessary
if(player->hp == 0)
if(player->isDead())
SendDeathscreen(peer_id, false, v3f(0,0,0));
// Note things in chat if not in simple singleplayer mode