From 388f59aff4a4c5affdbc128e0c1a3b272aebbea3 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Thu, 22 Oct 2026 10:48:02 +0200 Subject: [PATCH] Game: the ping's LAN flag follows is_published, every frame Single player on the server thread publishes inside the integrated server, so self.lan alone missed it; and the fps block runs only when a frame is drawn. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rs index e42b9683b..e93d16fba 100644 --- a/crates/horizon-client/src/game.rs +++ b/crates/horizon-client/src/game.rs @@ -10962,6 +10962,8 @@ impl ApplicationHandler for Game<'_> { } let updated = Instant::now(); self.track_toggle_screens(); + // For the "I'm playing" ping: an atomic, sent on when it changes. + horizon_client::heartbeat::set_lan(self.is_published()); let steps = self.clock.advance(elapsed); for _ in 0..steps { let started = Instant::now(); @@ -11084,7 +11086,6 @@ impl ApplicationHandler for Game<'_> { self.fps_frames += 1; horizon_client::crash::debug_crash_tick(); if self.fps_at.elapsed() >= Duration::from_secs(1) { - horizon_client::heartbeat::set_lan(self.lan.is_some()); self.fps = self.fps_frames as f32 / self.fps_at.elapsed().as_secs_f32(); self.fps_frames = 0; self.fps_at = Instant::now();