From 15344f56cdb82a7a96c98530c1e32d4627594001 Mon Sep 17 00:00:00 2001 From: toaster Date: Tue, 19 Mar 2024 22:00:08 +0000 Subject: [PATCH] Intro disclaimer: Use the same datatype for dc_lasttime as intro_curtime so the final fadeout isn't uncapped --- src/f_finale.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/f_finale.c b/src/f_finale.c index e3e7bbe08..7cde5767e 100644 --- a/src/f_finale.c +++ b/src/f_finale.c @@ -453,7 +453,7 @@ static disclaimerstate dc_state = 0; static UINT8 dc_tics = 0; static UINT8 dc_segaframe = 1; static UINT8 dc_bgcol = 0; -static UINT8 dc_lasttime = 0; +static INT32 dc_lasttime = 0; static boolean dc_ticking = false; static UINT8 dc_bluesegafade = 0; static UINT8 dc_textfade = 9; @@ -593,8 +593,10 @@ static void F_DisclaimerDrawScene(void) // Fade out screen if (dc_state == DISCLAIMER_OUT) { - if (dc_screenfade > 0 && !(dc_tics%10)) + if (dc_screenfade > 0) + { dc_screenfade--; + } } // ================================= STATE TRANSITIONS