From 67604720f961f7f3b30984a3b0699f7eabb828f5 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 23 Sep 2002 04:38:55 +0000 Subject: * Fixed build timer bug * Crosshair per weapon * Added dlight to flame balls - bit of a performance hit * Tweaked flamer repeat rate * Fixed human buildable explosion sound (FIXME: sync with anims?) --- src/game/g_weapon.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/game/g_weapon.c') diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index 0837d7e2..e2d37d57 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -474,9 +474,11 @@ void buildFire( gentity_t *ent, dynMenu_t menu ) return; } - G_ValidateBuild( ent, ent->client->ps.stats[ STAT_BUILDABLE ] & ~SB_VALID_TOGGLEBIT ); - ent->client->ps.stats[ STAT_BUILDABLE ] = BA_NONE; - ent->client->ps.stats[ STAT_MISC ] += BG_FindBuildDelayForWeapon( ent->s.weapon ); + if( G_ValidateBuild( ent, ent->client->ps.stats[ STAT_BUILDABLE ] & ~SB_VALID_TOGGLEBIT ) ) + { + ent->client->ps.stats[ STAT_BUILDABLE ] = BA_NONE; + ent->client->ps.stats[ STAT_MISC ] += BG_FindBuildDelayForWeapon( ent->s.weapon ); + } return; } -- cgit