Fix map voting verification
authoralfadur
Sat, 21 Jul 2018 02:19:32 +0300
changeset 13535 80db7232b4b5
parent 13534 662f7df89d06
child 13536 282218ab1b28
Fix map voting verification
gameServer2/src/server/handlers/inroom.rs
--- a/gameServer2/src/server/handlers/inroom.rs	Sat Jul 21 02:13:55 2018 +0300
+++ b/gameServer2/src/server/handlers/inroom.rs	Sat Jul 21 02:19:32 2018 +0300
@@ -372,9 +372,9 @@
                 },
                 VoteType::Map(Some(name)) => {
                     if server.rooms[room_id].saves.get(&name[..]).is_some() {
-                        Some("/callvote map: No such map!".to_string())
+                        None
                     } else {
-                        None
+                        Some("/callvote map: No such map!".to_string())
                     }
                 },
                 VoteType::Pause => {