# HG changeset patch # User alfadur # Date 1531869272 -10800 # Node ID d126d9a646aca17eb801942a5c364a9e97a07778 # Parent 5359ff75da3a0fdf5557ce7beba8653e10e7fd85 Keep hedgehog limit in sync diff -r 5359ff75da3a -r d126d9a646ac gameServer2/src/server/handlers/inroom.rs --- a/gameServer2/src/server/handlers/inroom.rs Tue Jul 17 16:03:34 2018 +0300 +++ b/gameServer2/src/server/handlers/inroom.rs Wed Jul 18 02:14:32 2018 +0300 @@ -99,7 +99,6 @@ Part(Some(msg)) => server.react(client_id, vec![ MoveToLobby(format!("part: {}", msg))]), Chat(msg) => { - let actions = { let c = &mut server.clients[client_id]; let chat_msg = ChatMsg {nick: c.nick.clone(), msg}; diff -r 5359ff75da3a -r d126d9a646ac gameServer2/src/server/room.rs --- a/gameServer2/src/server/room.rs Tue Jul 17 16:03:34 2018 +0300 +++ b/gameServer2/src/server/room.rs Wed Jul 18 02:14:32 2018 +0300 @@ -4,7 +4,8 @@ client::{HWClient} }; -const MAX_HEDGEHOGS_IN_ROOM: u8 = 48; +const MAX_HEDGEHOGS_IN_ROOM: u8 = 64; +const MAX_TEAMS_IN_ROOM: u8 = 8; #[derive(Clone)] struct Ammo { @@ -146,7 +147,7 @@ protocol_number: 0, players_number: 0, default_hedgehog_number: 4, - team_limit: 8, + team_limit: MAX_TEAMS_IN_ROOM, ready_players_number: 0, teams: Vec::new(), config: RoomConfig::new(),