rust/hedgewars-server/src/server/handlers/inroom.rs
changeset 14790 e94fbf6cad2b
parent 14789 18240b308505
child 15026 a479916799ea
equal deleted inserted replaced
14789:18240b308505 14790:e94fbf6cad2b
   603                     Some((id, _)) if id == client_id => response
   603                     Some((id, _)) if id == client_id => response
   604                         .add(Warning("You're already the room master.".to_string()).send_self()),
   604                         .add(Warning("You're already the room master.".to_string()).send_self()),
   605                     Some((_, id)) if id != Some(room_id) => response
   605                     Some((_, id)) if id != Some(room_id) => response
   606                         .add(Warning("The player is not in your room.".to_string()).send_self()),
   606                         .add(Warning("The player is not in your room.".to_string()).send_self()),
   607                     Some((id, _)) => {
   607                     Some((id, _)) => {
   608                         super::common::change_master(server, client_id, id, room_id, response);
   608                         super::common::change_master(server, room_id, id, response);
   609                     }
   609                     }
   610                 }
   610                 }
   611             }
   611             }
   612         }
   612         }
   613         _ => warn!("Unimplemented!"),
   613         _ => warn!("Unimplemented!"),