summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cgame/cg_main.c4
-rw-r--r--src/game/g_cmds.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c
index 55396704..9f7d26d5 100644
--- a/src/cgame/cg_main.c
+++ b/src/cgame/cg_main.c
@@ -1440,9 +1440,9 @@ static qboolean CG_ClientIsReady( int clientNum )
if( isdigit( *s ) )
val = *s - '0';
- else if( isxlower( *s ) )
+ else if( *s >= 'a' && *s <= 'f' )
val = 10 + *s - 'a';
- else if( isxupper( *s ) )
+ else if( *s >= 'A' && *s <= 'F' )
val = 10 + *s - 'A';
else
return qfalse;
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 );