diff options
-rw-r--r-- | src/game/g_weapon.c | 7 |
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 ) |