Don't handle PlayerPos packet coming from client if player is dead

pull/1964/merge
Loic Blot 2015-03-12 10:32:16 +01:00
parent 6ce0985f47
commit 3067d78216
1 changed files with 5 additions and 0 deletions

View File

@ -555,6 +555,11 @@ void Server::handleCommand_PlayerPos(NetworkPacket* pkt)
return;
}
// If player is dead we don't care of this packet
if (player->hp == 0) {
return;
}
PlayerSAO *playersao = player->getPlayerSAO();
if (playersao == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "