Skip to content

fix(ui): load game HUD overlay bug on macOS#233

Draft
fbraz3 wants to merge 1 commit into
mainfrom
fix-issue-221-hud-overlay
Draft

fix(ui): load game HUD overlay bug on macOS#233
fbraz3 wants to merge 1 commit into
mainfrom
fix-issue-221-hud-overlay

Conversation

@fbraz3

@fbraz3 fbraz3 commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Description

Fixes #221

Changes

  • Fixed an issue on macOS (and other platforms) where loading a normal save game from the Main Menu left the HUD overlay and Load/Save window on screen, making the game unplayable.
  • Resolved a state race condition in PopupSaveLoad.cpp where doLoadGame() was checking TheShell->isShellActive() == FALSE after it was prematurely cleared by closeSaveMenu().
  • Replaced the check with the static isPopup flag, which reliably indicates the origin of the load menu (in-game vs fullscreen shell). This restores the proper TheGameLogic->prepareNewGame(...) teardown sequence.

Fixed an issue where loading a normal save game from the Main Menu left the HUD overlay and Load/Save window on screen, making the game unplayable. This was caused by a state race condition in PopupSaveLoad.cpp where doLoadGame() checked TheShell->isShellActive() after it was prematurely cleared by closeSaveMenu(). Using the static isPopup flag restores the proper UI teardown sequence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MAC] Campaign mode loading will have main menu HUD overlay on top making it unplayable

1 participant