Skip to content
Permalink
Browse files

cgame: fix big popup fade effect

Was cycling fading effect for the cvar value duration,
if non-default cvar values were used.
  • Loading branch information...
isRyven committed Sep 10, 2019
1 parent 55be4da commit 25075d64d8264ca0446190c01582116c748a2f71
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/cgame/cg_popupmessages.c
@@ -784,10 +784,10 @@ void CG_DrawPMItemsBig(void)
return;
}

t = cg_pmWaitingListBig->time + PM_BIGPOPUP_TIME + PM_WAITTIME_BIG;
t = cg_pmWaitingListBig->time + PM_BIGPOPUP_TIME + cg_popupStayTime.value;
if (cg.time > t)
{
colourText[3] = 1 - ((cg.time - t) / (float)PM_FADETIME_BIG);
colourText[3] = cg_popupFadeTime.integer ? 1 - ((cg.time - t) / cg_popupFadeTime.value) : 0;
}

trap_R_SetColor(colourText);

0 comments on commit 25075d6

Please sign in to comment.
You can’t perform that action at this time.