rust/hedgewars-server/src/server/client.rs
changeset 14714 6a2e13e36b7f
parent 14478 98ef2913ec73
child 14800 f43ab2bd76ae
--- a/rust/hedgewars-server/src/server/client.rs	Thu Feb 07 14:49:51 2019 +0300
+++ b/rust/hedgewars-server/src/server/client.rs	Thu Feb 07 17:02:24 2019 +0300
@@ -19,8 +19,6 @@
     pub id: ClientId,
     pub room_id: Option<usize>,
     pub nick: String,
-    pub web_password: String,
-    pub server_salt: String,
     pub protocol_number: u16,
     pub flags: ClientFlags,
     pub teams_in_game: u8,
@@ -29,14 +27,12 @@
 }
 
 impl HWClient {
-    pub fn new(id: ClientId, salt: String) -> HWClient {
+    pub fn new(id: ClientId, protocol_number: u16, nick: String) -> HWClient {
         HWClient {
             id,
+            nick,
+            protocol_number,
             room_id: None,
-            nick: String::new(),
-            web_password: String::new(),
-            server_salt: salt,
-            protocol_number: 0,
             flags: ClientFlags::DEFAULT,
             teams_in_game: 0,
             team_indices: Vec::new(),