1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix multiple death messages (#5305)

Fix multiple death messages (#3565) and damage server logs after death.
This commit is contained in:
presstabstart 2017-04-07 04:32:50 +01:00 committed by Auke Kok
parent 63e175dd70
commit 351cc2e79a
3 changed files with 14 additions and 8 deletions

View file

@ -1107,6 +1107,13 @@ void Server::handleCommand_Damage(NetworkPacket* pkt)
}
if (g_settings->getBool("enable_damage")) {
if (playerSAO->isDead()) {
verbosestream << "Server::ProcessData(): Info: "
"Ignoring damage as player " << player->getName()
<< " is already dead." << std::endl;
return;
}
actionstream << player->getName() << " damaged by "
<< (int)damage << " hp at " << PP(playersao->getBasePosition() / BS)
<< std::endl;