summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
authorenneract <trem.redman@gmail.com>2014-11-19 11:31:42 +0100
committerenneract <trem.redman@gmail.com>2014-11-19 11:31:42 +0100
commit2a93a38bfa8feab7e7f9be7332f75f2d2b0036e7 (patch)
tree057596e5a50e416cb2e20db81ffd1b070de7a0b5 /src/game/g_active.c
parentfd19ccb037e349286e3b72a1277c58079056fcc2 (diff)
Merge WP_ABUILD and WP_ABUILD2 to free a weapon slot.
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r--src/game/g_active.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index f36ec46..c7a8977 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -847,7 +847,7 @@ void ClientTimerActions( gentity_t *ent, int msec )
client->ps.stats[ STAT_STAMINA ] += rate_stamina;
}
- if( weapon == WP_ABUILD || weapon == WP_ABUILD2 ||
+ if( weapon == WP_ABUILD ||
BG_InventoryContainsWeapon( WP_HBUILD, client->ps.stats ) )
{
// Update build timer
@@ -870,7 +870,6 @@ void ClientTimerActions( gentity_t *ent, int msec )
switch( weapon )
{
case WP_ABUILD:
- case WP_ABUILD2:
case WP_HBUILD:
// Set validity bit on buildable
@@ -1088,8 +1087,7 @@ void ClientTimerActions( gentity_t *ent, int msec )
{
client->time10000 -= 10000;
- if( ent->client->ps.weapon == WP_ABUILD ||
- ent->client->ps.weapon == WP_ABUILD2 )
+ if( ent->client->ps.weapon == WP_ABUILD )
{
AddScore( ent, ALIEN_BUILDER_SCOREINC );
}