From f58a14bc26cd5356f7ddd97f6481ddf8fc079223 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Wed, 7 Aug 2002 21:22:40 +0000 Subject: * "deconstruct" command to destroy buildables without damage --- src/game/g_weapon.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/game/g_weapon.c') 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" ); -- cgit