summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2015-06-22 15:59:40 +0200
committerPaweł Redman <pawel.redman@gmail.com>2015-06-22 15:59:40 +0200
commit43763238a0187c885482283c8d7e5ae0137423b5 (patch)
tree132fe778c611b006e66795b4d47c79043a13c57e /src/game/g_cmds.c
parent4f02df7e08cd3f16e3e1a048749b0c688346a60a (diff)
Remove Cloak.
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 33fff3f..ab26900 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -318,8 +318,6 @@ void ScoreboardMessage( gentity_t *ent )
upgrade = UP_LIGHTARMOUR;
else if( BG_InventoryContainsUpgrade( UP_BIOKIT, cl->ps.stats ) )
upgrade = UP_BIOKIT;
- else if( BG_InventoryContainsUpgrade( UP_CLOAK, cl->ps.stats ) )
- upgrade = UP_CLOAK;
else
upgrade = UP_NONE;
}
@@ -2254,12 +2252,6 @@ void Cmd_Buy_f( gentity_t *ent )
if( upgrade == UP_BATTPACK )
G_GiveClientMaxAmmo( ent, qtrue );
- if( upgrade == UP_CLOAK )
- {
- ent->client->cloakReady = qtrue;
- ent->client->ps.eFlags &= ~EF_MOVER_STOP;
- }
-
//subtract from funds
G_AddCreditToClient( ent->client, -(short)BG_Upgrade( upgrade )->price, qfalse );
}
@@ -2368,12 +2360,6 @@ void Cmd_Sell_f( gentity_t *ent )
if( upgrade == UP_BATTPACK )
G_GiveClientMaxAmmo( ent, qtrue );
-
- if( upgrade == UP_CLOAK )
- {
- ent->client->cloakReady = qfalse;
- ent->client->ps.eFlags &= ~EF_MOVER_STOP;
- }
//add to funds
G_AddCreditToClient( ent->client, (short)BG_Upgrade( upgrade )->price, qfalse );
}
@@ -2438,12 +2424,6 @@ void Cmd_Sell_f( gentity_t *ent )
if( i == UP_BATTPACK )
G_GiveClientMaxAmmo( ent, qtrue );
- if( i == UP_CLOAK )
- {
- ent->client->cloakReady = qfalse;
- ent->client->ps.eFlags &= ~EF_MOVER_STOP;
- }
-
//add to funds
G_AddCreditToClient( ent->client, (short)BG_Upgrade( i )->price, qfalse );
}