diff options
author | Paweł Redman <trem.redman@gmail.com> | 2013-09-15 21:50:33 +0200 |
---|---|---|
committer | Paweł Redman <trem.redman@gmail.com> | 2013-09-15 21:50:33 +0200 |
commit | e554c1d3ea2d5336fad7da41491dfeee59de6e6b (patch) | |
tree | 7174a73169b829092c9a93e8d09059677f4acdca /src | |
parent | 09460bd0361b0ad85ea890de6780476cc5fd8a16 (diff) |
Battle suit + Helmet bugfix
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_cmds.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 3578b08..468dde0 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -2262,8 +2262,9 @@ void Cmd_Buy_f( gentity_t *ent ) return; } - //have space to carry this? - if( !sellHelmet && BG_Upgrade( upgrade )->slots & BG_SlotsForInventory( ent->client->ps.stats ) ) + if( BG_Upgrade( upgrade )->slots & BG_SlotsForInventory( ent->client->ps.stats ) && + !( sellHelmet && ( BG_InventoryContainsUpgrade( UP_HELMET_MK1, ent->client->ps.stats ) || + BG_InventoryContainsUpgrade( UP_HELMET_MK2, ent->client->ps.stats ) ) ) ) { G_TriggerMenu( ent->client->ps.clientNum, MN_H_NOSLOTS ); return; |