From 4e63c977c782e81e828445d20c836d84e3ba1766 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Fri, 13 Mar 2015 08:57:19 +0100 Subject: Use the new Player::isDead function when it's the case --- src/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server.cpp') diff --git a/src/server.cpp b/src/server.cpp index 1e2c445f7..a21d12e6a 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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 -- cgit v1.2.3