From d740b57dc74b9060f11cced0e39b690530dbe681 Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 17 Oct 2019 23:40:26 -0700 Subject: [PATCH] fix that moving security data thing --- src/login/character.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/login/character.rs b/src/login/character.rs index f75883e..abdcba6 100644 --- a/src/login/character.rs +++ b/src/login/character.rs @@ -266,7 +266,7 @@ impl CharacterServerState { client.security_data[0..4].clone_from_slice(&[1,3,3,7]); client.security_data[4] = select.slot as u8; client.security_data[5] = 1; - Ok(vec![SendCharacterPacket::LoginResponse(LoginResponse::by_char_select(user.guildcard.unwrap_or(1), + Ok(vec![SendCharacterPacket::LoginResponse(LoginResponse::by_char_select(user.guildcard.unwrap_or(0), user.team_id.unwrap_or(1), client.security_data)), SendCharacterPacket::CharAck(CharAck { @@ -340,7 +340,7 @@ impl ServerState for CharacterServerState { -> Result>, CharacterError> { Ok(match pkt { RecvCharacterPacket::Login(login) => { - if login.security_data[8..12] == [1,3,3,7] { + if login.security_data[0..4] == [1,3,3,7] { Box::new(self.send_ship_list(id, login)?.into_iter().map(move |pkt| (id, pkt))) } else { @@ -415,7 +415,7 @@ impl ServerState for CharacterServerState { client.security_data[5] = 1; user.flags = 0; self.entity_gateway.set_user(&user); - Box::new(vec![SendCharacterPacket::LoginResponse(LoginResponse::by_char_select(user.guildcard.unwrap_or(0), + Box::new(vec![SendCharacterPacket::LoginResponse(LoginResponse::by_char_select(user.guildcard.unwrap_or(1), user.team_id.unwrap_or(0), client.security_data)), SendCharacterPacket::CharAck(CharAck {