Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/commands_yr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down