1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-23 16:08:51 -05:00

Fix player not dying when beated to death by other player

This commit is contained in:
Perttu Ahola 2011-12-04 03:56:22 +02:00
parent bff8be8b76
commit bc5cc638fc

View File

@ -4307,13 +4307,12 @@ void Server::HandlePlayerHP(Player *player, s16 damage)
if(srp->m_respawn_active)
return;
if(damage == 0)
return;
if(player->hp > damage)
{
if(damage != 0){
player->hp -= damage;
SendPlayerHP(player);
}
return;
}