summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2005-08-03 02:09:25 +0000
committerTim Angus <tim@ngus.net>2005-08-03 02:09:25 +0000
commit27d040ddd22fdc5874d3135f58a5e475520e9bc1 (patch)
treed6a0c72f737a051da42f16ab4786ffc00cc87691 /src/game
parent013d69701f6132583d550929e5c751af0cd62db1 (diff)
* Build timer does not go up so much when building repeaters
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_weapon.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c
index 607f6c3c..132bc83d 100644
--- a/src/game/g_weapon.c
+++ b/src/game/g_weapon.c
@@ -644,14 +644,13 @@ void buildFire( gentity_t *ent, dynMenu_t menu )
if( G_ValidateBuild( ent, ent->client->ps.stats[ STAT_BUILDABLE ] & ~SB_VALID_TOGGLEBIT ) )
{
- ent->client->ps.stats[ STAT_BUILDABLE ] = BA_NONE;
-
if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS && !G_isOvermind( ) )
{
ent->client->ps.stats[ STAT_MISC ] +=
BG_FindBuildDelayForWeapon( ent->s.weapon ) * 2;
}
- else if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS && !G_isPower( muzzle ) )
+ else if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS && !G_isPower( muzzle ) &&
+ ( ent->client->ps.stats[ STAT_BUILDABLE ] & ~SB_VALID_TOGGLEBIT ) != BA_H_REPEATER ) //hack
{
ent->client->ps.stats[ STAT_MISC ] +=
BG_FindBuildDelayForWeapon( ent->s.weapon ) * 2;
@@ -659,6 +658,8 @@ void buildFire( gentity_t *ent, dynMenu_t menu )
else
ent->client->ps.stats[ STAT_MISC ] +=
BG_FindBuildDelayForWeapon( ent->s.weapon );
+
+ ent->client->ps.stats[ STAT_BUILDABLE ] = BA_NONE;
// don't want it bigger than 32k
if( ent->client->ps.stats[ STAT_MISC ] > 30000 )