summaryrefslogtreecommitdiff
path: root/src/game/g_weapon.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2002-08-07 21:22:40 +0000
committerTim Angus <tim@ngus.net>2002-08-07 21:22:40 +0000
commitf58a14bc26cd5356f7ddd97f6481ddf8fc079223 (patch)
tree43c9e1383d893d12de70ca8a35529716c89dab57 /src/game/g_weapon.c
parent22e1a7d2865cf7fb030a0270a2928e09080b30b8 (diff)
* "deconstruct" command to destroy buildables without damage
Diffstat (limited to 'src/game/g_weapon.c')
-rw-r--r--src/game/g_weapon.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c
index 3b65ddb6..6174a3b4 100644
--- a/src/game/g_weapon.c
+++ b/src/game/g_weapon.c
@@ -411,7 +411,7 @@ void cancelBuildFire( gentity_t *ent )
ent->client->ps.stats[ STAT_BUILDABLE ] = BA_NONE;
}
-void buildFire( gentity_t *ent, dynMenu_t menu, int delay )
+void buildFire( gentity_t *ent, dynMenu_t menu )
{
if( ( ent->client->ps.stats[ STAT_BUILDABLE ] & ~SB_VALID_TOGGLEBIT ) > BA_NONE )
{
@@ -423,7 +423,7 @@ void buildFire( gentity_t *ent, dynMenu_t menu, int delay )
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 ] += delay;
+ ent->client->ps.stats[ STAT_MISC ] += BG_FindBuildDelayForWeapon( ent->s.weapon );
return;
}
@@ -993,16 +993,16 @@ void FireWeapon( gentity_t *ent )
painSawFire( ent );
break;
case WP_ABUILD:
- buildFire( ent, MN_A_BUILD, 10000 );
+ buildFire( ent, MN_A_BUILD );
break;
case WP_ABUILD2:
- buildFire( ent, MN_A_BUILD, 5000 );
+ buildFire( ent, MN_A_BUILD );
break;
case WP_HBUILD:
- buildFire( ent, MN_H_BUILD, 10000 );
+ buildFire( ent, MN_H_BUILD );
break;
case WP_HBUILD2:
- buildFire( ent, MN_H_BUILD, 5000 );
+ buildFire( ent, MN_H_BUILD );
break;
default:
// FIXME G_Error( "Bad ent->s.weapon" );