Tweaked game message fading a bit.
This commit is contained in:
parent
78429997aa
commit
57e28231c1
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue