rust/hedgewars-server/src/core/client.rs
changeset 15569 4b2f3228f13b
parent 15532 f1205f33bf5b
child 15930 ab57c0d81748
--- a/rust/hedgewars-server/src/core/client.rs	Sat May 16 04:43:11 2020 +0200
+++ b/rust/hedgewars-server/src/core/client.rs	Sun May 17 04:07:10 2020 +0300
@@ -7,10 +7,9 @@
         const IS_MASTER = 0b0000_0010;
         const IS_READY = 0b0000_0100;
         const IS_IN_GAME = 0b0000_1000;
-        const IS_JOINED_MID_GAME = 0b0001_0000;
-        const IS_CONTRIBUTOR = 0b0010_0000;
-        const HAS_SUPER_POWER = 0b0100_0000;
-        const IS_REGISTERED = 0b1000_0000;
+        const IS_CONTRIBUTOR = 0b0001_0000;
+        const HAS_SUPER_POWER = 0b0010_0000;
+        const IS_REGISTERED = 0b0100_0000;
 
         const NONE = 0b0000_0000;
         const DEFAULT = Self::NONE.bits;
@@ -62,9 +61,6 @@
     pub fn is_in_game(&self) -> bool {
         self.contains(ClientFlags::IS_IN_GAME)
     }
-    pub fn is_joined_mid_game(&self) -> bool {
-        self.contains(ClientFlags::IS_JOINED_MID_GAME)
-    }
     pub fn is_contributor(&self) -> bool {
         self.contains(ClientFlags::IS_CONTRIBUTOR)
     }
@@ -87,9 +83,6 @@
     pub fn set_is_in_game(&mut self, value: bool) {
         self.set(ClientFlags::IS_IN_GAME, value)
     }
-    pub fn set_is_joined_mid_game(&mut self, value: bool) {
-        self.set(ClientFlags::IS_JOINED_MID_GAME, value)
-    }
     pub fn set_is_contributor(&mut self, value: bool) {
         self.set(ClientFlags::IS_CONTRIBUTOR, value)
     }