Skip to content

Commit

Permalink
cgame: added client console feedback for shoutcaster status change, r…
Browse files Browse the repository at this point in the history
…efs #1292
  • Loading branch information
rmarquis committed Dec 4, 2019
1 parent de3eb75 commit 4e156fe
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/cgame/cg_players.c
Expand Up @@ -377,7 +377,6 @@ void CG_NewClientInfo(int clientNum)

trap_Cvar_Set("cg_ui_voteFlags", Info_ValueForKey(info, "voteFlags"));
CG_Printf("[cgnotify]^3*** You have been stripped of your referee status! ***\n");

}
else
{
Expand All @@ -386,6 +385,20 @@ void CG_NewClientInfo(int clientNum)
CG_Printf("Type: ^3ref^7 (by itself) for a list of referee commands.\n");
}
}

if (newInfo.shoutcaster != ci->shoutcaster)
{
if (newInfo.shoutcaster <= 0)
{
const char *info = CG_ConfigString(CS_SERVERINFO);

CG_Printf("[cgnotify]^3*** You have been stripped of your shoutcaster status! ***\n");
}
else
{
CG_Printf("[cgnotify]^2*** You have been authorized \"shoutcaster\" status ***\n");
}
}
}

// passing the clientNum since that's all we need, and we
Expand Down

0 comments on commit 4e156fe

Please sign in to comment.