summaryrefslogtreecommitdiff
path: root/src/game/g_target.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2009-10-03 11:41:24 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:14 +0000
commit614a658030e59212335611596adb196b93e5b437 (patch)
treeb627256cb9b7f4d8c55490111a149d059da5053d /src/game/g_target.c
parentea433462e65a861b7123942151e882954f55f052 (diff)
* Merge clientSession_t::sessionTeam and clientSession_t::spectatorState
* Remove existing team_t (TEAM_FREE, TEAM_SPECTATOR) * s/pTeam_t/team_t/;s/buildableTeam_t/team_t/;s/WUTeam_t/team_t/ * s/pClass_t/class_t/ * s/PERS_TEAM/PERS_SPECSTATE/ * s/STAT_PTEAM/STAT_TEAM/;s/STAT_PCLASS/STAT_CLASS/
Diffstat (limited to 'src/game/g_target.c')
-rw-r--r--src/game/g_target.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/g_target.c b/src/game/g_target.c
index dfb9c7e2..b2c2d9ab 100644
--- a/src/game/g_target.c
+++ b/src/game/g_target.c
@@ -92,9 +92,9 @@ void Use_Target_Print( gentity_t *ent, gentity_t *other, gentity_t *activator )
if( ent->spawnflags & 3 )
{
if( ent->spawnflags & 1 )
- G_TeamCommand( PTE_HUMANS, va( "cp \"%s\"", ent->message ) );
+ G_TeamCommand( TEAM_HUMANS, va( "cp \"%s\"", ent->message ) );
if( ent->spawnflags & 2 )
- G_TeamCommand( PTE_ALIENS, va( "cp \"%s\"", ent->message ) );
+ G_TeamCommand( TEAM_ALIENS, va( "cp \"%s\"", ent->message ) );
return;
}
@@ -232,11 +232,11 @@ if RANDOM is checked, only one of the targets will be fired, not all of them
void target_relay_use( gentity_t *self, gentity_t *other, gentity_t *activator )
{
if( ( self->spawnflags & 1 ) && activator->client &&
- activator->client->ps.stats[ STAT_PTEAM ] != PTE_HUMANS )
+ activator->client->ps.stats[ STAT_TEAM ] != TEAM_HUMANS )
return;
if( ( self->spawnflags & 2 ) && activator->client &&
- activator->client->ps.stats[ STAT_PTEAM ] != PTE_ALIENS )
+ activator->client->ps.stats[ STAT_TEAM ] != TEAM_ALIENS )
return;
if( self->spawnflags & 4 )