Browse Source

remove unused infoboard packet

pbs
Andy Newjack 4 years ago
parent
commit
5393baeca7
  1. 1
      src/ship/packet/handler/communication.rs
  2. 2
      src/ship/ship.rs

1
src/ship/packet/handler/communication.rs

@ -18,7 +18,6 @@ pub fn player_chat(id: ClientId,
}
pub fn request_infoboard(id: ClientId,
_request_infoboard: &ViewInfoboardRequest,
client_location: &ClientLocation,
clients: &Clients)
-> Box<dyn Iterator<Item = (ClientId, SendShipPacket)> + Send> {

2
src/ship/ship.rs

@ -306,7 +306,7 @@ impl<EG: EntityGateway> ServerState for ShipServerState<EG> {
handler::settings::update_config(id, pkt, &mut self.clients, &mut self.entity_gateway)
},
RecvShipPacket::ViewInfoboardRequest(pkt) => {
handler::communication::request_infoboard(id, pkt, &self.client_location, &self.clients)
handler::communication::request_infoboard(id, &self.client_location, &self.clients)
},
RecvShipPacket::WriteInfoboard(pkt) => {
handler::communication::write_infoboard(id, pkt, &mut self.clients, &mut self.entity_gateway)

Loading…
Cancel
Save