tr1/game_flow: skip levels in story so far

This restores skipping over levels in the story so far feature.

Resolves #2506.
This commit is contained in:
lahm86 2025-02-15 10:16:16 +00:00
parent de6d213e48
commit a1f51988c7
2 changed files with 3 additions and 0 deletions

View file

@ -1,5 +1,6 @@
## [Unreleased](https://github.com/LostArtefacts/TRX/compare/tr1-4.8.1...develop) - ××××-××-××
- changed default FPS value to 60 (#2501)
- fixed story so far not skipping over levels (#2506, regression from 4.8)
- improved memory usage by shedding ca. 100-110 MB on average
## [4.8.1](https://github.com/LostArtefacts/TRX/compare/tr1-4.8...tr1-4.8.1) - 2025-02-14

View file

@ -60,6 +60,8 @@ static DECLARE_GF_EVENT_HANDLER(M_HandlePlayLevel)
const int32_t savegame_level_num = (int32_t)(intptr_t)seq_ctx_arg;
if (savegame_level_num == level->num) {
return (GF_COMMAND) { .action = GF_EXIT_TO_TITLE };
} else {
return (GF_COMMAND) { .action = GF_NOOP };
}
break;