From b241a2db32d60741d6f9e23934a564460f23a386 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sun, 3 Jul 2005 02:15:59 +0000 Subject: * Booster needs to spawn before boosting * Fix to [ 962477 ] Chasecam bug * Added -Werror to CFLAGS --- src/game/g_active.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/g_active.c b/src/game/g_active.c index d22a8b2b..792817ac 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -336,6 +336,8 @@ void SpectatorThink( gentity_t *ent, usercmd_t *ucmd ) client->ps.speed = 400; // faster than normal + client->ps.stats[ STAT_STAMINA ] = 0; + // set up for pmove memset( &pm, 0, sizeof( pm ) ); pm.ps = &client->ps; @@ -713,7 +715,8 @@ void ClientTimerActions( gentity_t *ent, int msec ) break; } else if( boostEntity->s.eType == ET_BUILDABLE && - boostEntity->s.modelindex == BA_A_BOOSTER ) + boostEntity->s.modelindex == BA_A_BOOSTER && + boostEntity->spawned ) { modifier = BOOSTER_REGEN_MOD; break; -- cgit