From d3d00b11db149a676be446719fa88963600cba48 Mon Sep 17 00:00:00 2001 From: Ilya Shurumov Date: Tue, 18 May 2021 22:45:29 +0600 Subject: [PATCH] - fix autotest ending - fix autotest stuck timer --- src_rebuild/Game/C/cutrecorder.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src_rebuild/Game/C/cutrecorder.c b/src_rebuild/Game/C/cutrecorder.c index fe5c5296..10f95703 100644 --- a/src_rebuild/Game/C/cutrecorder.c +++ b/src_rebuild/Game/C/cutrecorder.c @@ -44,7 +44,7 @@ int gCutsceneAsReplay_ReserveSlots = 2; char gCutsceneRecorderPauseText[64] = { 0 }; char gCurrentChasePauseText[64] = { 0 }; -extern PAUSEMODE PauseMode; +extern int gDieWithFade; int CutRec_LoadCutsceneAsReplayFromBuffer(char* buffer); void InitCutsceneRecorder(char* configFilename); @@ -102,6 +102,7 @@ void CutRec_Step() if(gChaseStuckTimer > 45) { gAutoTestStats[gCutsceneChaseAutoTest].stuck = 1; + gChaseStuckTimer = 0; } } @@ -109,7 +110,7 @@ void CutRec_Step() } if(gCutsceneChaseAutoTest != 0 && gCutsceneChaseAutoTest < 15 && - NoPlayerControl && ReplayParameterPtr->RecordingEnd - 2 < CameraCnt) + NoPlayerControl && ReplayParameterPtr->RecordingEnd - 2 < CameraCnt || gDieWithFade) { gCutsceneChaseAutoTest++; @@ -146,7 +147,7 @@ void CutRec_Draw() if(gCutsceneChaseAutoTest) { - sprintf(text, "Chase: %d", gCutsceneChaseAutoTest); + sprintf(text, "Chase: %d - frame %d of %d", gCutsceneChaseAutoTest, CameraCnt, ReplayParameterPtr->RecordingEnd); PrintString(text, 5, 120); }