From 8095ea2ac10d980aec4e3205cedcf83c7eaba94c Mon Sep 17 00:00:00 2001 From: rr- Date: Tue, 30 Mar 2021 00:10:27 +0200 Subject: [PATCH] fix demo mode --- src/game/control.c | 2 +- src/game/game.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/control.c b/src/game/control.c index bdb32da87..1cddf9444 100644 --- a/src/game/control.c +++ b/src/game/control.c @@ -147,7 +147,7 @@ int32_t ControlPhase(int32_t nframes, int32_t demo_mode) S_UpdateInput(); if (ResetFlag) { - return GF_EXIT_TO_TITLE; + return GF_NOP_BREAK; } if (demo_mode) { diff --git a/src/game/game.c b/src/game/game.c index 6a540d362..0e2eda7ea 100644 --- a/src/game/game.c +++ b/src/game/game.c @@ -59,6 +59,8 @@ int32_t StopGame() int32_t GameLoop(int32_t demo_mode) { + NoInputCount = 0; + ResetFlag = 0; OverlayFlag = 1; InitialiseCamera();