rust/hedgewars-engine-messages/src/parser.rs
changeset 14278 645e4591361f
parent 14265 f0c0d2d217c3
child 15269 7515ae6010bb
--- a/rust/hedgewars-engine-messages/src/parser.rs	Thu Nov 22 13:39:51 2018 +0100
+++ b/rust/hedgewars-engine-messages/src/parser.rs	Thu Nov 22 13:40:58 2018 +0100
@@ -69,7 +69,7 @@
 
 named!(unordered_message<&[u8], UnorderedEngineMessage>, alt!(
       do_parse!(tag!("?") >> ( Ping ))
-    | do_parse!(tag!("!") >> ( Ping ))
+    | do_parse!(tag!("!") >> ( Pong ))
     | do_parse!(tag!("E") >> s: string_tail >> ( UnorderedEngineMessage::Error(s)) )
     | do_parse!(tag!("W") >> s: string_tail >> ( Warning(s)) )
     | do_parse!(tag!("s") >> s: string_tail >> ( ChatMessage(s)) )
@@ -81,6 +81,7 @@
 
 named!(config_message<&[u8], ConfigEngineMessage>, alt!(
     do_parse!(tag!("C") >> (ConfigRequest))
+    | do_parse!(tag!("eseed ") >> s: string_tail >> ( SetSeed(s)) )
 ));
 
 named!(timestamped_message<&[u8], (SyncedEngineMessage, u16)>,