diff options
Diffstat (limited to 'server/src/state.rs')
| -rw-r--r-- | server/src/state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/state.rs b/server/src/state.rs index a42c1663..fc97a7d1 100644 --- a/server/src/state.rs +++ b/server/src/state.rs @@ -34,7 +34,7 @@ impl Server { let mut idle_kick = Vec::new(); for (cid, conn) in &mut self.connections { conn.last_player_input += dt; - if conn.last_player_input > 60. { + if conn.last_player_input > self.config.inactivity_kick_timeout { idle_kick.push(*cid); } } @@ -201,7 +201,7 @@ impl Server { .ok(); self.load( self.index - .generate_with_book("lobby") + .generate_with_book(&self.config.lobby) .map_err(|m| tre!("s.error.map_load", s = format!("{m}")))?, None, ); |