From 905bf98867d338a85fe8bc1cea06145d61f48a16 Mon Sep 17 00:00:00 2001 From: Dethrace Labs Date: Tue, 18 Jan 2022 09:31:42 +1300 Subject: [PATCH] fixes demo CheckTimer() --- src/DETHRACE/common/mainloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DETHRACE/common/mainloop.c b/src/DETHRACE/common/mainloop.c index a175136d..f5642c9b 100644 --- a/src/DETHRACE/common/mainloop.c +++ b/src/DETHRACE/common/mainloop.c @@ -425,7 +425,7 @@ void CheckTimer() { } if (harness_game_info.mode == eGame_carmageddon_demo) { - time_left = 240000 - GetTotalTime(); + time_left = 240000 - GetRaceTime(); time_in_seconds = (time_left + 500) / 1000; if (time_in_seconds != last_demo_time_in_seconds && time_in_seconds <= 10) DRS3StartSound(gIndexed_outlets[4], 1001);