Skip to content

Commit

Permalink
gameflow: fix infinite loop in story so far
Browse files Browse the repository at this point in the history
Resolves #1551.
  • Loading branch information
rr- committed Sep 30, 2024
1 parent 947a952 commit 281ccf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- fixed really fast typing in console sometimes losing the first input (regression from 4.4)
- fixed Lara's head not matching the braid if in use when she is killed by the T-rex (#1549)
- fixed `/endlevel` displaying a success message in the title screen
- fixed Story So Far feature looping cutscenes forever (#1551, regression from 4.4)
- improved object name matching in console commands to work like TR2X

## [4.4](https://github.com/LostArtefacts/TR1X/compare/4.3-102-g458cd96...4.4) - 2024-09-20
Expand Down
3 changes: 2 additions & 1 deletion src/game/gameflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,8 @@ GameFlow_StorySoFar(int32_t level_num, int32_t savegame_level)

case GFS_LOOP_CINE:
command = Phase_Run();
if (command.action != GF_CONTINUE_SEQUENCE) {
if (command.action != GF_CONTINUE_SEQUENCE
&& command.action != GF_LEVEL_COMPLETE) {
return command;
}
break;
Expand Down

0 comments on commit 281ccf4

Please sign in to comment.