Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughWhen save-game loading fails, ChangesSave-load failure cleanup
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The failed-load cleanup restores the loading state checked by the quit menu in both variants. No remaining merge-blocking risk is established. Pre-merge checks ·
|
| TheGameEngine->reset(); | ||
|
|
||
| // TheSuperHackers @bugfix bobtista 11/10/2026 Prevent a failed save load from leaving the quit menu disabled. | ||
| TheGameLogic->setLoadingSave( FALSE ); |
There was a problem hiding this comment.
Just wondering, does it matter if this is done before or after the other stuff in this branch?
There was a problem hiding this comment.
No it doesn't matter. Only the quit menu checks this flag, and clearGameData and the engine reset do not read or change it.
GameStateMap::xfersetsTheGameLogic->setLoadingSave(TRUE)and clears it only at the end of a successful load. When the load throws,GameState::loadGametakes its error path and resets the engine, but nothing clears the flag.canOpenQuitMenu()checksisLoadingSave(), so the ESC menu stays disabled in every game started afterwards.Now the error path in
GameState::loadGameclears the flag. The save format does not change.Todo:
CHUNK_GameStateMapversion:isLoadingSave()is 1 after the failed load before the fix, 0 after