summaryrefslogtreecommitdiff
path: root/src/cgame/cg_event.c
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 12:26:21 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:57 +0000
commit6f56815bdb0ba0b37d4afcd4c2cac3f4ddd1846d (patch)
treeba9aa844a62d71b2e1fac1c5db45e85b848a7ca2 /src/cgame/cg_event.c
parenta2ace419da13b911514392033940f7f307766b33 (diff)
* Don't display team join message if previous clientinfo was invalid (bug 3960)
* Move CG_TeamJoinMessage to cg_players.c near where it is used * When changing team, execute cg_(alien|human|spectator)Config as appropriate
Diffstat (limited to 'src/cgame/cg_event.c')
-rw-r--r--src/cgame/cg_event.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/cgame/cg_event.c b/src/cgame/cg_event.c
index 7bc50929..2ec45f39 100644
--- a/src/cgame/cg_event.c
+++ b/src/cgame/cg_event.c
@@ -368,49 +368,6 @@ static void CG_Obituary( entityState_t *ent )
}
-/*
-=============
-CG_TeamJoinMessage
-
-Prints messages when players change teams
-=============
-*/
-void CG_TeamJoinMessage( clientInfo_t *newInfo, clientInfo_t *ci )
-{
- int team;
- int oldteam;
- char *playerName;
-
-
- // Collect info
- team = newInfo->team;
- oldteam = ci->team;
-
- playerName = newInfo->name;
-
- // If no change occurred, print nothing
- if( team == oldteam )
- return;
-
- // Print the appropriate message
- if( team == TEAM_NONE )
- {
- CG_Printf( "%s" S_COLOR_WHITE " left the %ss\n",
- playerName, BG_TeamName( oldteam ) );
- }
- else if( oldteam == TEAM_NONE )
- {
- CG_Printf( "%s" S_COLOR_WHITE " joined the %ss\n",
- playerName, BG_TeamName( team ) );
- }
- else
- {
- CG_Printf( "%s" S_COLOR_WHITE " left the %ss and joined the %ss\n",
- playerName, BG_TeamName( oldteam ), BG_TeamName( team ) );
- }
-}
-
-
//==========================================================================