Browse Source

remove debug print

pbs
jake 5 years ago
parent
commit
95fb1dbc86
  1. 1
      src/main.rs
  2. 1
      src/ship/ship.rs

1
src/main.rs

@ -19,6 +19,7 @@ use entity::gateway::{EntityGateway, InMemoryGateway};
use libpso::{utf8_to_array, utf8_to_utf16_array}; use libpso::{utf8_to_array, utf8_to_utf16_array};
//use crate::utf8_to_utf16_array; //use crate::utf8_to_utf16_array;
fn main() { fn main() {
let mut entity_gateway = InMemoryGateway::new(); let mut entity_gateway = InMemoryGateway::new();

1
src/ship/ship.rs

@ -108,7 +108,6 @@ impl<EG: EntityGateway> ShipServerState<EG> {
response.guildcard = user.guildcard.map_or(24, |gc| gc) as u32; response.guildcard = user.guildcard.map_or(24, |gc| gc) as u32;
response.team_id = user.team_id.map_or(31, |ti| ti) as u32; response.team_id = user.team_id.map_or(31, |ti| ti) as u32;
client.session = pkt.session; client.session = pkt.session;
println!("SESSION {:?}", client.session);
let characters = self.entity_gateway.get_characters_by_user(&user); let characters = self.entity_gateway.get_characters_by_user(&user);
client.character = characters client.character = characters
.get(pkt.session.character_slot as usize) .get(pkt.session.character_slot as usize)

Loading…
Cancel
Save