diff options
author | Tim Angus <tim@ngus.net> | 2005-07-18 20:49:27 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2005-07-18 20:49:27 +0000 |
commit | 544819bea87e1515ebc9fb88f8d8e1e1863175c0 (patch) | |
tree | 4751e0aa7e127d58ff7e4d06db77f0f498dba9ea /src | |
parent | 2fe0506dfcac9a8e7702ef4b152ef37814b5ee63 (diff) |
* Humans spawn with max stamina
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_client.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 ); |