summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2005-06-27 01:45:53 +0000
committerTim Angus <tim@ngus.net>2005-06-27 01:45:53 +0000
commit343590fb5ec7fbe0cb651c45b4ad7de7c83edb5f (patch)
tree26ac0bede82ae657a27afad72b2d76da43baedb7 /src
parentdcce2065d01d3e4b175fcb4efe8ad2aa787c8c05 (diff)
* Fixed a minor bug with the change in spawn direction
Diffstat (limited to 'src')
-rw-r--r--src/game/g_client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index 0cc6ab05..24b7900c 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1445,7 +1445,8 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles
G_AddPredictableEvent( ent, EV_PLAYER_RESPAWN, 0 );
}
}
- else if( client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS )
+ else if( client->sess.sessionTeam != TEAM_SPECTATOR &&
+ client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS )
{
spawn_angles[ YAW ] += 180.0f;
AngleNormalize360( spawn_angles[ YAW ] );