equal
deleted
inserted
replaced
260 if let (c, Some(r)) = server.client_and_room(client_id) { |
260 if let (c, Some(r)) = server.client_and_room(client_id) { |
261 if c.is_in_game { |
261 if c.is_in_game { |
262 c.is_in_game = false; |
262 c.is_in_game = false; |
263 actions.push(ClientFlags("-g".to_string(), vec![c.nick.clone()]). |
263 actions.push(ClientFlags("-g".to_string(), vec![c.nick.clone()]). |
264 send_all().in_room(r.id).action()); |
264 send_all().in_room(r.id).action()); |
265 for team in r.client_teams(c.id) { |
265 if r.game_info.is_some() { |
266 actions.push(SendTeamRemovalMessage(team.name.clone())); |
266 for team in r.client_teams(c.id) { |
|
267 actions.push(SendTeamRemovalMessage(team.name.clone())); |
|
268 } |
267 } |
269 } |
268 } |
270 } |
269 } |
271 } |
270 server.react(client_id, actions) |
272 server.react(client_id, actions) |
271 } |
273 } |