diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-10-30 20:12:57 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-10-30 20:12:57 +0100 |
| commit | 1f91f8aae0fb5e77583625a945c273b85f9a25e3 (patch) | |
| tree | e327a5c8e96103cc508791cfe640dc19c5e6a685 /server/src/server.rs | |
| parent | ec28ab3e6f39333ab9052e84b57467f310116a3c (diff) | |
| download | hurrycurry-1f91f8aae0fb5e77583625a945c273b85f9a25e3.tar hurrycurry-1f91f8aae0fb5e77583625a945c273b85f9a25e3.tar.bz2 hurrycurry-1f91f8aae0fb5e77583625a945c273b85f9a25e3.tar.zst | |
Remove inactive player
Diffstat (limited to 'server/src/server.rs')
| -rw-r--r-- | server/src/server.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/server.rs b/server/src/server.rs index fc2df029..4c46a280 100644 --- a/server/src/server.rs +++ b/server/src/server.rs @@ -79,6 +79,7 @@ pub struct Server { pub score_changed: bool, pub packet_loopback: VecDeque<PacketS>, pub last_movement_update: HashMap<PlayerID, Instant>, + pub player_inactivity_timers: HashMap<PlayerID, f32>, pub index: DataIndex, pub packet_out: VecDeque<PacketC>, pub scoreboard: ScoreboardStore, @@ -105,6 +106,7 @@ impl Server { score_changed: false, packet_loopback: VecDeque::new(), last_movement_update: HashMap::default(), + player_inactivity_timers: HashMap::new(), scoreboard: ScoreboardStore::load().context("Failed to load scoreboards")?, editor_address: None, paused: false, |