From 47d734314f4f1373361189140a25e4397827fd47 Mon Sep 17 00:00:00 2001 From: Mozi <29089388+pzhlkj6612@users.noreply.github.com> Date: Mon, 26 Jan 2026 22:18:00 +0000 Subject: [PATCH] fix: unpause game regardless of whether single-step mode is enabled --- src/commands_yr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands_yr.cpp b/src/commands_yr.cpp index 8cb77e4..f46f570 100644 --- a/src/commands_yr.cpp +++ b/src/commands_yr.cpp @@ -110,7 +110,10 @@ auto get_game_state() { } Q->command_data().mutable_state()->CopyFrom(D->sv.game_state()); - if (single_step) { + // Always unpause the game regardless of the value of `single_step`. + // This ensures the game resumes when `get_game_state()` is called + // after disabling single-step mode. + if (D->game_paused.get()) { D->game_paused.store(false); } M.unlock();