--- a/gameServer2/src/server/handlers/lobby.rs Fri Jul 06 16:27:25 2018 +0200
+++ b/gameServer2/src/server/handlers/lobby.rs Fri Jul 06 16:59:52 2018 +0200
@@ -10,7 +10,7 @@
HWServerMessage::*
};
use utils::is_name_illegal;
-use super::common::rnd_reply;
+use super::common::rnd_action;
pub fn handle(server: &mut HWServer, client_id: ClientId, message: HWProtocolMessage) {
use protocol::messages::HWProtocolMessage::*;
@@ -58,7 +58,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)
+ },
List => warn!("Deprecated LIST message received"),
_ => warn!("Incorrect command in lobby state"),
}