summaryrefslogtreecommitdiff
path: root/src/game/g_team.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_team.c')
-rw-r--r--src/game/g_team.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game/g_team.c b/src/game/g_team.c
index 85582f19..c4db7dcf 100644
--- a/src/game/g_team.c
+++ b/src/game/g_team.c
@@ -170,8 +170,8 @@ void TeamplayInfoMessage( gentity_t *ent )
{
player = g_entities + level.sortedClients[ i ];
- if( player->inuse && player->client->sess.sessionTeam ==
- ent->client->sess.sessionTeam )
+ if( player->inuse && player->client->ps.stats[ STAT_TEAM ] ==
+ ent->client->ps.stats[ STAT_TEAM ] )
clients[ cnt++ ] = level.sortedClients[ i ];
}
@@ -186,8 +186,8 @@ void TeamplayInfoMessage( gentity_t *ent )
{
player = g_entities + i;
- if( player->inuse && player->client->sess.sessionTeam ==
- ent->client->sess.sessionTeam )
+ if( player->inuse && player->client->ps.stats[ STAT_TEAM ] ==
+ ent->client->ps.stats[ STAT_TEAM ] )
{
h = player->client->ps.stats[ STAT_HEALTH ];
@@ -228,8 +228,8 @@ void CheckTeamStatus( void )
if( ent->client->pers.connected != CON_CONNECTED )
continue;
- if( ent->inuse && ( ent->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ||
- ent->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) )
+ if( ent->inuse && ( ent->client->ps.stats[ STAT_TEAM ] == TEAM_HUMANS ||
+ ent->client->ps.stats[ STAT_TEAM ] == TEAM_ALIENS ) )
{
loc = Team_GetLocation( ent );
@@ -247,8 +247,8 @@ void CheckTeamStatus( void )
if( ent->client->pers.connected != CON_CONNECTED )
continue;
- if( ent->inuse && ( ent->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ||
- ent->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) )
+ if( ent->inuse && ( ent->client->ps.stats[ STAT_TEAM ] == TEAM_HUMANS ||
+ ent->client->ps.stats[ STAT_TEAM ] == TEAM_ALIENS ) )
TeamplayInfoMessage( ent );
}
}