Browse Source

cleanup

pull/49/head
andy 4 years ago
parent
commit
f0f65c70be
  1. 4
      src/ship/packet/handler/room.rs

4
src/ship/packet/handler/room.rs

@ -107,13 +107,11 @@ pub fn join_room(id: ClientId,
return Ok(Box::new(vec![(id, SendShipPacket::SmallDialog(SmallDialog::new("You must be at least level 20 \nto join Hard rooms.".into())))].into_iter())) return Ok(Box::new(vec![(id, SendShipPacket::SmallDialog(SmallDialog::new("You must be at least level 20 \nto join Hard rooms.".into())))].into_iter()))
} }
}, },
_ => {},
}; };
let original_area = client_location.get_area(id).unwrap(); let original_area = client_location.get_area(id).unwrap();
let original_neighbors = client_location.get_client_neighbors(id).unwrap(); let original_neighbors = client_location.get_client_neighbors(id).unwrap();
// let room = rooms.get(pkt.item as usize)
// .ok_or_else(|| ShipError::InvalidRoom(pkt.item))?.as_ref()
// .ok_or_else(|| ShipError::InvalidRoom(pkt.item))?;
if room.bursting { if room.bursting {
return Ok(Box::new(vec![(id, SendShipPacket::SmallDialog(SmallDialog::new("player is bursting\nplease wait".into())))].into_iter())) return Ok(Box::new(vec![(id, SendShipPacket::SmallDialog(SmallDialog::new("player is bursting\nplease wait".into())))].into_iter()))
} }

Loading…
Cancel
Save