Browse Source

PlayerChangedFloor doesn't contain the right map area

pbs
Andy Newjack 4 years ago
parent
commit
7a37bb502e
  1. 2
      src/ship/packet/handler/message.rs

2
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::PlayerWalking(p) => {client.x = p.x; client.z = p.z;},
GameMessage::PlayerRunning(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::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;} GameMessage::InitializeSpeechNpc(p) => {client.x = p.x; client.z = p.z;}
_ => {}, _ => {},
} }

Loading…
Cancel
Save