Skip to content

Commit cf39c0a

Browse files
committed
- fix autotest ending
- fix autotest stuck timer
1 parent 1e05d11 commit cf39c0a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src_rebuild/Game/C/cutrecorder.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ int gCutsceneAsReplay_ReserveSlots = 2;
4444
char gCutsceneRecorderPauseText[64] = { 0 };
4545
char gCurrentChasePauseText[64] = { 0 };
4646

47-
extern PAUSEMODE PauseMode;
47+
extern int gDieWithFade;
4848

4949
int CutRec_LoadCutsceneAsReplayFromBuffer(char* buffer);
5050
void InitCutsceneRecorder(char* configFilename);
@@ -102,14 +102,15 @@ void CutRec_Step()
102102
if(gChaseStuckTimer > 45)
103103
{
104104
gAutoTestStats[gCutsceneChaseAutoTest].stuck = 1;
105+
gChaseStuckTimer = 0;
105106
}
106107
}
107108

108109
return;
109110
}
110111

111112
if(gCutsceneChaseAutoTest != 0 && gCutsceneChaseAutoTest < 15 &&
112-
NoPlayerControl && ReplayParameterPtr->RecordingEnd - 2 < CameraCnt)
113+
NoPlayerControl && ReplayParameterPtr->RecordingEnd - 2 < CameraCnt || gDieWithFade)
113114
{
114115
gCutsceneChaseAutoTest++;
115116

@@ -146,7 +147,7 @@ void CutRec_Draw()
146147

147148
if(gCutsceneChaseAutoTest)
148149
{
149-
sprintf(text, "Chase: %d", gCutsceneChaseAutoTest);
150+
sprintf(text, "Chase: %d - frame %d of %d", gCutsceneChaseAutoTest, CameraCnt, ReplayParameterPtr->RecordingEnd);
150151
PrintString(text, 5, 120);
151152
}
152153

0 commit comments

Comments
 (0)