mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix team chat box for spectators
Make spectators use green background for team chat box when following players. The team chat messages are from spectators not the team of the followed player. Make spectators draw team chat box even when not following a player.
This commit is contained in:
parent
5d88c6fdee
commit
e152761c28
1 changed files with 6 additions and 6 deletions
|
@ -1374,12 +1374,12 @@ static void CG_DrawTeamInfo( void ) {
|
|||
|
||||
h = (cgs.teamChatPos - cgs.teamLastChatPos) * TINYCHAR_HEIGHT;
|
||||
|
||||
if ( cg.snap->ps.persistant[PERS_TEAM] == TEAM_RED ) {
|
||||
if ( cgs.clientinfo[cg.clientNum].team == TEAM_RED ) {
|
||||
hcolor[0] = 1.0f;
|
||||
hcolor[1] = 0.0f;
|
||||
hcolor[2] = 0.0f;
|
||||
hcolor[3] = 0.33f;
|
||||
} else if ( cg.snap->ps.persistant[PERS_TEAM] == TEAM_BLUE ) {
|
||||
} else if ( cgs.clientinfo[cg.clientNum].team == TEAM_BLUE ) {
|
||||
hcolor[0] = 0.0f;
|
||||
hcolor[1] = 0.0f;
|
||||
hcolor[2] = 1.0f;
|
||||
|
@ -2582,12 +2582,12 @@ static void CG_Draw2D(stereoFrame_t stereoFrame)
|
|||
#endif
|
||||
CG_DrawReward();
|
||||
}
|
||||
}
|
||||
|
||||
if ( cgs.gametype >= GT_TEAM ) {
|
||||
if ( cgs.gametype >= GT_TEAM ) {
|
||||
#ifndef MISSIONPACK
|
||||
CG_DrawTeamInfo();
|
||||
CG_DrawTeamInfo();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
CG_DrawVote();
|
||||
|
|
Loading…
Reference in a new issue