diff options
author | Tim Angus <tim@ngus.net> | 2013-01-12 23:55:21 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-12 23:55:21 +0000 |
commit | 0f43dc6df58569ceb32475c4a4009ea6de437923 (patch) | |
tree | dc2f7b0e108658f1591409ffed95b8e340f8cc12 /src/game/g_team.c | |
parent | 16b581e90f1df605141d157edad1a75b4594f479 (diff) |
Fix a bunch of warnings
Diffstat (limited to 'src/game/g_team.c')
-rw-r--r-- | src/game/g_team.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/game/g_team.c b/src/game/g_team.c index ec387acd..531e3d2e 100644 --- a/src/game/g_team.c +++ b/src/game/g_team.c @@ -23,27 +23,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "g_local.h" -// NULL for everyone -void QDECL PrintMsg( gentity_t *ent, const char *fmt, ... ) -{ - char msg[ 1024 ]; - va_list argptr; - char *p; - - va_start( argptr,fmt ); - - if( Q_vsnprintf( msg, sizeof( msg ), fmt, argptr ) > sizeof( msg ) ) - G_Error ( "PrintMsg overrun" ); - - va_end( argptr ); - - // double quotes are bad - while( ( p = strchr( msg, '"' ) ) != NULL ) - *p = '\''; - - trap_SendServerCommand( ( ( ent == NULL ) ? -1 : ent-g_entities ), va( "print \"%s\"", msg ) ); -} - /* ================ G_TeamFromString @@ -249,7 +228,7 @@ void G_ChangeTeam( gentity_t *ent, team_t newTeam ) G_UpdateTeamConfigStrings( ); G_LogPrintf( "ChangeTeam: %d %s: %s" S_COLOR_WHITE " switched teams\n", - ent - g_entities, BG_TeamName( newTeam ), ent->client->pers.netname ); + (int)( ent - g_entities ), BG_TeamName( newTeam ), ent->client->pers.netname ); G_namelog_update_score( ent->client ); TeamplayInfoMessage( ent ); |