From 4423164ca52ab6cf943e4fc39149fabfcd789b35 Mon Sep 17 00:00:00 2001 From: CommonLoon102 <321850+CommonLoon102@users.noreply.github.com> Date: Sat, 14 Sep 2019 06:47:20 +0000 Subject: [PATCH] More smooth fadeout for the map title. (#165) --- source/blood/src/view.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blood/src/view.cpp b/source/blood/src/view.cpp index 1de1ecb85..01457049d 100644 --- a/source/blood/src/view.cpp +++ b/source/blood/src/view.cpp @@ -1242,8 +1242,8 @@ void viewDrawMapTitle(void) if (!gShowMapTitle || gGameMenuMgr.m_bActive) return; - int const fadeStartTic = int(1.f*kTicsPerSec); - int const fadeEndTic = int(1.25f*kTicsPerSec); + int const fadeStartTic = int((videoGetRenderMode() == REND_CLASSIC ? 1.25f : 1.f)*kTicsPerSec); + int const fadeEndTic = int(1.5f*kTicsPerSec); if (gLevelTime > fadeEndTic) return; uint8_t const alpha = clamp((gLevelTime-fadeStartTic)*255/(fadeEndTic-fadeStartTic), 0, 255);