Player: also stop sending the state packet while the game is paused

Measured on the built branch: it does not stop the drowning from #1592 on
its own. Kept because it is what forcing the level to stand still looks
like, and the negative result is in the PR.

Co-Authored-By: Hermes Agent (Nous Research) <noreply@nousresearch.com>
This commit is contained in:
Alexander Krylov
2026-10-24 23:29:55 +03:00
parent 4c3abd86de
commit 7d06aca17a
+4 -1
View File
@@ -3109,6 +3109,7 @@ 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);
@@ -3243,7 +3244,9 @@ impl Game<'_> {
data: 0,
}));
}
self.remote_send_state(input);
if !self.pause {
self.remote_send_state(input);
}
Ok(())
}