equal
deleted
inserted
replaced
285 if let Some(r) = room_id.and_then(|id| server.rooms.get(id)) { |
285 if let Some(r) = room_id.and_then(|id| server.rooms.get(id)) { |
286 if config { |
286 if config { |
287 actions.push(ConfigEntry("FULLMAPCONFIG".to_string(), r.map_config()) |
287 actions.push(ConfigEntry("FULLMAPCONFIG".to_string(), r.map_config()) |
288 .send(to).action()); |
288 .send(to).action()); |
289 for cfg in r.game_config().into_iter() { |
289 for cfg in r.game_config().into_iter() { |
290 actions.push(cfg.into_server_msg().send(to).action()); |
290 actions.push(cfg.to_server_msg().send(to).action()); |
291 } |
291 } |
292 } |
292 } |
293 if teams { |
293 if teams { |
294 let current_teams = match r.game_info { |
294 let current_teams = match r.game_info { |
295 Some(ref info) => &info.teams_at_start, |
295 Some(ref info) => &info.teams_at_start, |