From 544819bea87e1515ebc9fb88f8d8e1e1863175c0 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 18 Jul 2005 20:49:27 +0000 Subject: * Humans spawn with max stamina --- src/game/g_client.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/game/g_client.c b/src/game/g_client.c index 0b4a1222..4ece1b5f 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1372,10 +1372,6 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles client->ps.stats[ STAT_WEAPONS2 ] = 0; client->ps.stats[ STAT_SLOTS ] = 0; - //NON-VOLATILE CREDIT //no credit -/* if( !spawn ) - client->ps.persistant[ PERS_CREDIT ] = 0;*/ - client->ps.eFlags = flags; client->ps.clientNum = index; @@ -1416,6 +1412,8 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles for( i = 0; i < MAX_CLIENTS; i++ ) ent->credits[ i ] = 0; + client->ps.stats[ STAT_STAMINA ] = MAX_STAMINA; + G_SetOrigin( ent, spawn_origin ); VectorCopy( spawn_origin, client->ps.origin ); -- cgit