Skip to content

Commit

Permalink
tr2/option_passport: restore play any level in gym
Browse files Browse the repository at this point in the history
Resolves #2564.
  • Loading branch information
lahm86 committed Mar 1, 2025
1 parent 6044b08 commit 18fa738
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/tr2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- fixed play any level causing the game to hang when no gym level is present (#2560, regression from 0.9)
- fixed extremely large item quantities crashing the game (#2497, regression from 0.3)
- fixed missing new game text in the passport when play any level is enabled (#2563, regression from 0.9)
- fixed the play any level dialog not showing in the gym passport (#2564, regression from 0.9)

## [0.9.2](https://github.com/LostArtefacts/TRX/compare/tr2-0.9.1...tr2-0.9.2) - 2025-02-19
- fixed secret rewards not handed out after loading a save (#2528, regression from 0.8)
Expand Down
4 changes: 3 additions & 1 deletion src/tr2/game/option/option_passport.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ static void M_DeterminePages(void)
if (Game_IsInGym()) {
for (int32_t i = 0; i < 3; i++) {
if (m_State.pages[i].role == M_ROLE_SAVE_GAME) {
m_State.pages[i].role = M_ROLE_NEW_GAME;
m_State.pages[i].role = g_GameFlow.play_any_level
? M_ROLE_PLAY_ANY_LEVEL
: M_ROLE_NEW_GAME;
}
}
}
Expand Down

0 comments on commit 18fa738

Please sign in to comment.