Skip to content
Snippets Groups Projects
Commit 3067d782 authored by Loïc Blot's avatar Loïc Blot
Browse files

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

parent 6ce0985f
No related branches found
No related tags found
No related merge requests found
......@@ -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: "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment