Skip to content

Commit

Permalink
fix messged up FMV sequence IDs (closes #41)
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Mar 4, 2021
1 parent 5f17175 commit a0bec82
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/game/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ int32_t ControlPhase(int32_t nframes, int32_t demo_mode)
}

for (; FrameCount >= 0; FrameCount -= 0x10000) {
if (CDTrack > 0)
if (CDTrack > 0) {
S_CDLoop();
}

CheckCheatMode();
if (LevelComplete) {
Expand Down
4 changes: 2 additions & 2 deletions src/game/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ int32_t LevelCompleteSequence(int level_num)
return GF_STARTCINE | LV_CUTSCENE3;

case LV_LEVEL10B:
S_PlayFMV(FMV_ENDSEQ, 1);
S_PlayFMV(FMV_PRISON, 1);
return GF_STARTCINE | LV_CUTSCENE4;

case LV_LEVEL10C:
LevelStats(LV_LEVEL10C);
S_PlayFMV(FMV_CORE, 1);
S_PlayFMV(FMV_ENDSEQ, 1);
TempVideoAdjust(2, 1.0);
S_DisplayPicture("data\\end");
sub_408E41();
Expand Down
16 changes: 8 additions & 8 deletions src/game/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -687,14 +687,14 @@ typedef enum {
FMV_GYM = 1,
FMV_SNOW = 2,
FMV_LIFT = 3,
FMV_VISION = 3,
FMV_CANYON = 4,
FMV_PYRAMID = 5,
FMV_PRISON = 6,
FMV_ENDSEQ = 7,
FMV_CORE = 8,
FMV_ESCAPE = 9,
NUMBER_OF_FMV
FMV_VISION = 4,
FMV_CANYON = 5,
FMV_PYRAMID = 6,
FMV_PRISON = 7,
FMV_ENDSEQ = 8,
FMV_CORE = 9,
FMV_ESCAPE = 10,
NUMBER_OF_FMV = 11,
} FMV_SEQUENCE;

typedef enum {
Expand Down

0 comments on commit a0bec82

Please sign in to comment.