Pause: drop the state-packet gates, Game::tick doesn't run while paused

The frame loop skips Game::tick while the game is paused, so these never
fired; the server thread's paused pass is what moved the player on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-24 23:04:59 +02:00
parent 40eb3e202a
commit 0849283a9d
+1 -4
View File
@@ -3109,7 +3109,6 @@ impl Game<'_> {
// must continue, as well as moves into the unloaded area.
if let Some(r) = self.remote.as_ref()
&& r.loaded_sent
&& !self.pause
{
let input = r.last_input;
self.remote_send_state(input);
@@ -3241,9 +3240,7 @@ impl Game<'_> {
data: 0,
}));
}
if !self.pause {
self.remote_send_state(input);
}
self.remote_send_state(input);
Ok(())
}