Skip to content
Permalink
Browse files

cgame: fix cg_popupBigFilter had inverse behavior

  • Loading branch information...
isRyven committed Aug 7, 2019
1 parent 5af0aa9 commit 8b449b27d81277dda292ab5f739df84c9cc3890e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/cgame/cg_players.c
@@ -311,7 +311,7 @@ void CG_NewClientInfo(int clientNum)
{
CG_SoundPlaySoundScript(GetRankTableData(cgs.clientinfo[cg.clientNum].team, newInfo.rank)->soundNames, NULL, -1, qtrue);

if (cg_popupBigFilter.integer & POPUP_BIG_FILTER_RANK)
if (!(cg_popupBigFilter.integer & POPUP_BIG_FILTER_RANK))
{
CG_AddPMItemBig(PM_RANK, va(CG_TranslateString("Promoted to rank %s!"), GetRankTableData(cgs.clientinfo[cg.clientNum].team, newInfo.rank)->names), rankicons[newInfo.rank][cgs.clientinfo[cg.clientNum].team == TEAM_AXIS ? 1 : 0][0].shader);
}
@@ -345,7 +345,7 @@ void CG_NewClientInfo(int clientNum)
if (!cgs.demoCamera.renderingFreeCam && !cgs.demoCamera.renderingWeaponCam)
{
#endif
if (cg_popupBigFilter.integer & POPUP_BIG_FILTER_SKILL)
if (!(cg_popupBigFilter.integer & POPUP_BIG_FILTER_SKILL))
{
CG_AddPMItemBig(PM_SKILL, va(CG_TranslateString("Increased %s skill to level %i!"), CG_TranslateString(GetSkillTableData(i)->skillNames), newInfo.skill[i]), cgs.media.skillPics[i]);
}

0 comments on commit 8b449b2

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