cleanup
This commit is contained in:
		
							parent
							
								
									cd8ebc23a0
								
							
						
					
					
						commit
						fef3b94732
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user