aboutsummaryrefslogtreecommitdiff
path: root/src/network/packethandlers
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/packethandlers')
-rw-r--r--src/network/packethandlers/server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/packethandlers/server.cpp b/src/network/packethandlers/server.cpp
index a11e8dc2f..d24e8df5b 100644
--- a/src/network/packethandlers/server.cpp
+++ b/src/network/packethandlers/server.cpp
@@ -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: "