Tweaked game message fading a bit.

This commit is contained in:
Marco Cawthorne 2019-09-01 13:46:05 +02:00
parent 78429997aa
commit 57e28231c1

View file

@ -93,8 +93,8 @@ GameText_DrawMessage(int i, float timer, int highlight)
timer = max(0, timer);
if (highlight) {
mtime = g_textchannels[i].m_flFadeIn + g_textchannels[i].m_flFadeOut;
btime = g_textchannels[i].m_flFadeIn;
btime = g_textchannels[i].m_flFadeIn * strlen(g_textchannels[i].m_strMessage);
mtime = btime + g_textchannels[i].m_flFadeOut;
} else {
mtime = g_textchannels[i].m_flFadeIn + g_textchannels[i].m_flHoldTime + g_textchannels[i].m_flFadeOut;
btime = g_textchannels[i].m_flFadeIn + g_textchannels[i].m_flHoldTime;