Skip to content

Commit 3067d78

Browse files
committedMar 12, 2015
Don't handle PlayerPos packet coming from client if player is dead
1 parent 6ce0985 commit 3067d78

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/network/packethandlers/server.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,11 @@ void Server::handleCommand_PlayerPos(NetworkPacket* pkt)
555555
return;
556556
}
557557

558+
// If player is dead we don't care of this packet
559+
if (player->hp == 0) {
560+
return;
561+
}
562+
558563
PlayerSAO *playersao = player->getPlayerSAO();
559564
if (playersao == NULL) {
560565
errorstream << "Server::ProcessData(): Cancelling: "

3 commit comments

Comments
 (3)

HybridDog commented on Mar 13, 2015

@HybridDog
Contributor

Does this fix the corpses which run around on some servers?

nerzhul commented on Mar 13, 2015

@nerzhul
ContributorAuthor

It's the goal, yes

HybridDog commented on Mar 14, 2015

@HybridDog
Contributor

ok, fixing this bug this way makes sense to me
but some time ago there were weird player bugs which caused players to ride on others (maybe someone was attached to the player object)
and sometimes players were upside down
screenshot_3215737037_low

Please sign in to comment.