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:
@@ -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(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user