gameServer2/src/server/actions.rs
changeset 13439 c4f917c6be51
parent 13428 c8425fbcf1d9
child 13443 2501428303a2
equal deleted inserted replaced
13438:da71e0d88a1c 13439:c4f917c6be51
   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,