summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2005-07-03 02:15:59 +0000
committerTim Angus <tim@ngus.net>2005-07-03 02:15:59 +0000
commitb241a2db32d60741d6f9e23934a564460f23a386 (patch)
tree4e03f7749733b4896d7583a68309a1518d788555 /src/game
parent7e630e1fcdfc61a3c88fffbf49a96cccd636cbf4 (diff)
* Booster needs to spawn before boosting
* Fix to [ 962477 ] Chasecam bug * Added -Werror to CFLAGS
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_active.c5
1 files changed, 4 insertions, 1 deletions
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;