Browse Source

fix some things

pbs
jake 4 years ago
parent
commit
b517fb561c
  1. 4
      src/login/login.rs
  2. 3
      src/ship/ship.rs

4
src/login/login.rs

@ -230,6 +230,10 @@ mod test {
at_ship: false,
})
}
async fn save_user(&mut self, user: &UserAccountEntity) -> Result<(), GatewayError> {
Ok(())
}
};
let mut server = LoginServerState::new(TestData {}, "127.0.0.1".parse().unwrap());

3
src/ship/ship.rs

@ -494,7 +494,8 @@ impl<EG: EntityGateway> ServerState for ShipServerState<EG> {
handler::quest::load_quest(id, questmenuselect, &self.quests, &mut self.clients, &self.client_location, &mut self.rooms)?
},
RecvShipPacket::MenuDetail(_menudetail) => {
unreachable!();
//unreachable!();
Box::new(Vec::new().into_iter())
},
RecvShipPacket::RoomPasswordReq(room_password_req) => {
if room_password_req.password == self.rooms[room_password_req.item as usize].as_ref()

Loading…
Cancel
Save