fix tests
authoralfadur
Mon, 09 Jul 2018 20:31:32 +0300
changeset 13481 8697b235f236
parent 13480 fb37745c5bca
child 13482 7f3289a239dd
fix tests
gameServer2/src/protocol/messages.rs
--- a/gameServer2/src/protocol/messages.rs	Mon Jul 09 19:41:26 2018 +0300
+++ b/gameServer2/src/protocol/messages.rs	Mon Jul 09 20:31:32 2018 +0300
@@ -232,8 +232,8 @@
             Unfix => msg!["CMD", "UNFIX"],
             Greeting(msg) => msg!["CMD", format!("GREETING {}", msg)],
             //CallVote(Option<(String, Option<String>)>) =>, ??
-            Vote(msg) => msg!["CMD", format!("VOTE {}", msg)],
-            ForceVote(msg) => msg!["CMD", format!("FORCE {}", msg)],
+            Vote(msg) => msg!["CMD", format!("VOTE {}", if *msg {"YES"} else {"NO"})],
+            ForceVote(msg) => msg!["CMD", format!("FORCE {}", if *msg {"YES"} else {"NO"})],
             //Save(String, String), ??
             Delete(room) => msg!["CMD", format!("DELETE {}", room)],
             SaveRoom(room) => msg!["CMD", format!("SAVEROOM {}", room)],