gameServer2/src/server/handlers/inroom.rs
changeset 13530 80db7232b4b5
parent 13529 662f7df89d06
child 13666 09f4a30e50cc
equal deleted inserted replaced
13529:662f7df89d06 13530:80db7232b4b5
   370                         Some(format!("Available maps: {}", names.join(", ")))
   370                         Some(format!("Available maps: {}", names.join(", ")))
   371                     }
   371                     }
   372                 },
   372                 },
   373                 VoteType::Map(Some(name)) => {
   373                 VoteType::Map(Some(name)) => {
   374                     if server.rooms[room_id].saves.get(&name[..]).is_some() {
   374                     if server.rooms[room_id].saves.get(&name[..]).is_some() {
       
   375                         None
       
   376                     } else {
   375                         Some("/callvote map: No such map!".to_string())
   377                         Some("/callvote map: No such map!".to_string())
   376                     } else {
       
   377                         None
       
   378                     }
   378                     }
   379                 },
   379                 },
   380                 VoteType::Pause => {
   380                 VoteType::Pause => {
   381                     if is_in_game {
   381                     if is_in_game {
   382                         None
   382                         None