summaryrefslogtreecommitdiff
path: root/src/game/g_mover.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_mover.c')
-rw-r--r--src/game/g_mover.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/g_mover.c b/src/game/g_mover.c
index 856f8cd5..1e290706 100644
--- a/src/game/g_mover.c
+++ b/src/game/g_mover.c
@@ -1303,7 +1303,7 @@ void Touch_DoorTrigger( gentity_t *ent, gentity_t *other, trace_t *trace )
if( other->s.eType == ET_BUILDABLE )
return;
- if( other->client && other->client->sess.sessionTeam == TEAM_SPECTATOR )
+ if( other->client && other->client->sess.spectatorState != SPECTATOR_NOT )
{
// if the door is not open and not opening
if( ent->parent->moverState != MOVER_1TO2 &&
@@ -2226,13 +2226,13 @@ void Blocked_Train( gentity_t *self, gentity_t *other )
vec3_t dir;
gentity_t *tent;
- if( other->biteam == BIT_ALIENS )
+ if( other->buildableTeam == TEAM_ALIENS )
{
VectorCopy( other->s.origin2, dir );
tent = G_TempEntity( other->s.origin, EV_ALIEN_BUILDABLE_EXPLOSION );
tent->s.eventParm = DirToByte( dir );
}
- else if( other->biteam == BIT_HUMANS )
+ else if( other->buildableTeam == TEAM_HUMANS )
{
VectorSet( dir, 0.0f, 0.0f, 1.0f );
tent = G_TempEntity( other->s.origin, EV_HUMAN_BUILDABLE_EXPLOSION );