From 04b66114f276f9a43459d27bef554a0df26e04e4 Mon Sep 17 00:00:00 2001 From: obligaron Date: Mon, 20 Mar 2023 22:20:07 +0100 Subject: [PATCH] Multiplayer: When updating remote player tile ensures that it's free --- Source/multi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/multi.cpp b/Source/multi.cpp index 7296bef1e..cb5e596e0 100644 --- a/Source/multi.cpp +++ b/Source/multi.cpp @@ -641,7 +641,7 @@ void multi_process_network_packets() player._pBaseDex = pkt->bdex; if (!cond && player.plractive && player._pHitPoints != 0) { if (player.isOnActiveLevel() && !player._pLvlChanging) { - if (player.position.tile.WalkingDistance(syncPosition) > 3 && dPlayer[pkt->px][pkt->py] == 0) { + if (player.position.tile.WalkingDistance(syncPosition) > 3 && PosOkPlayer(player, syncPosition)) { // got out of sync, clear the tiles around where we last thought the player was located FixPlrWalkTags(player);