From 7a37bb502eae8147b51745402ad9d22f3edac708 Mon Sep 17 00:00:00 2001 From: Andy Newjack Date: Sat, 25 Jul 2020 22:31:00 -0300 Subject: [PATCH] PlayerChangedFloor doesn't contain the right map area --- src/ship/packet/handler/message.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ship/packet/handler/message.rs b/src/ship/packet/handler/message.rs index 1a2bb8a..bfb7e61 100644 --- a/src/ship/packet/handler/message.rs +++ b/src/ship/packet/handler/message.rs @@ -185,7 +185,7 @@ pub fn update_player_position(id: ClientId, GameMessage::PlayerWalking(p) => {client.x = p.x; client.z = p.z;}, GameMessage::PlayerRunning(p) => {client.x = p.x; client.z = p.z;}, GameMessage::PlayerWarped(p) => {client.x = p.x; client.y = p.y;}, - GameMessage::PlayerChangedFloor(p) => {client.area = MapArea::from_value(&room.mode.episode(), p.map).ok();}, + // GameMessage::PlayerChangedFloor(p) => {client.area = MapArea::from_value(&room.mode.episode(), p.map).ok();}, GameMessage::InitializeSpeechNpc(p) => {client.x = p.x; client.z = p.z;} _ => {}, }