gameServer2/src/server/client.rs
changeset 13534 662f7df89d06
parent 13527 282e5e54386f
child 13803 4664da990556
--- a/gameServer2/src/server/client.rs	Fri Jul 20 22:14:20 2018 +0300
+++ b/gameServer2/src/server/client.rs	Sat Jul 21 02:13:55 2018 +0300
@@ -7,6 +7,9 @@
         const IS_READY = 0b0000_0100;
         const IS_IN_GAME = 0b0000_1000;
         const IS_JOINED_MID_GAME = 0b0001_0000;
+
+        const NONE = 0b0000_0000;
+        const DEFAULT = Self::NONE.bits;
     }
 }
 
@@ -28,7 +31,7 @@
             room_id: None,
             nick: String::new(),
             protocol_number: 0,
-            flags: ClientFlags::empty(),
+            flags: ClientFlags::DEFAULT,
             teams_in_game: 0,
             team_indices: Vec::new(),
             clan: None,