gameServer2/src/server/handlers/inroom.rs
changeset 13450 d3c86ade3d4d
parent 13449 914f9b970f4d
child 13482 f748a72432f2
--- a/gameServer2/src/server/handlers/inroom.rs	Fri Jul 06 16:27:25 2018 +0200
+++ b/gameServer2/src/server/handlers/inroom.rs	Fri Jul 06 16:59:52 2018 +0200
@@ -13,7 +13,7 @@
 use utils::is_name_illegal;
 use std::mem::swap;
 use base64::{encode, decode};
-use super::common::rnd_reply;
+use super::common::rnd_action;
 
 #[derive(Clone)]
 struct ByMsg<'a> {
@@ -289,7 +289,10 @@
             }
             server.react(client_id, actions)
         },
-        Rnd(v) => server.react(client_id, rnd_reply(v)),
+        Rnd(v) => {
+            let actions = rnd_action(v, server.room(client_id));
+            server.react(client_id, actions)
+        },
         _ => warn!("Unimplemented!")
     }
 }