summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 12:10:20 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:43 +0000
commit609cf594b65b92c2d8e2041f67dcf01f40896e4d (patch)
tree6ee9aac51de356fb6cf9f2ee0f7a928b2ce22b78 /src/game/g_cmds.c
parent8e61c2f6d2451d320314b26e600bd8e0b636c8b0 (diff)
* Fix spectator occasionally displaying crosshairs
* Fix reference to function not defined in .sos
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index db8a37b9..888e678e 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -2454,13 +2454,15 @@ void G_StopFollowing( gentity_t *ent )
if( ent->client->pers.teamSelection == TEAM_NONE )
{
- ent->client->sess.spectatorState = SPECTATOR_FREE;
+ ent->client->sess.spectatorState =
+ ent->client->ps.persistant[ PERS_SPECSTATE ] = SPECTATOR_FREE;
}
else
{
vec3_t spawn_origin, spawn_angles;
- ent->client->sess.spectatorState = SPECTATOR_LOCKED;
+ ent->client->sess.spectatorState =
+ ent->client->ps.persistant[ PERS_SPECSTATE ] = SPECTATOR_LOCKED;
if( ent->client->pers.teamSelection == TEAM_ALIENS )
G_SelectAlienLockSpawnPoint( spawn_origin, spawn_angles );