mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9353bf27a1 | ||
|
|
ef51b578c3 | ||
|
|
69904ee003 |
@@ -1560,6 +1560,8 @@ BOOLEAN DisplayMercsInventory(UINT8 ubMercID)
|
||||
CHAR16 gzItemName[ 5000 ];
|
||||
UINT8 ubItemCount=0;
|
||||
UINT8 ubColumnCount=0;
|
||||
const bool realisticGameStyle = gGameOptions.ubGameStyle != STYLE_SCIFI;
|
||||
const bool reducedGuns = gGameOptions.fGunNut == false;
|
||||
|
||||
//if the mercs inventory has already been purchased, dont display the inventory
|
||||
if ( (gMercProfiles[ ubMercID ].ubMiscFlags & PROFILE_MISC_FLAG_ALREADY_USED_ITEMS) && !gGameExternalOptions.fGearKitsAlwaysAvailable )
|
||||
@@ -1583,6 +1585,18 @@ BOOLEAN DisplayMercsInventory(UINT8 ubMercID)
|
||||
{
|
||||
usItem = gMercProfiles[ubMercID].inv[ i ];
|
||||
|
||||
if (realisticGameStyle && ItemIsOnlyInScifi(usItem))
|
||||
{
|
||||
gMercProfiles[ubMercID].inv[i] = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (reducedGuns && ItemIsOnlyInTonsOfGuns(usItem))
|
||||
{
|
||||
gMercProfiles[ubMercID].inv[i] = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
//if its a valid item AND we are only displaying less then 8 items
|
||||
if( usItem && ubItemCount < WEAPONBOX_TOTAL_ITEMS )
|
||||
{
|
||||
@@ -1662,6 +1676,18 @@ BOOLEAN DisplayMercsInventory(UINT8 ubMercID)
|
||||
{
|
||||
usItem = gMercProfiles[ubMercID].inv[ i ];
|
||||
|
||||
if (realisticGameStyle && ItemIsOnlyInScifi(usItem))
|
||||
{
|
||||
gMercProfiles[ubMercID].inv[i] = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (reducedGuns && ItemIsOnlyInTonsOfGuns(usItem))
|
||||
{
|
||||
gMercProfiles[ubMercID].inv[i] = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
//if its a valid item AND we are only displaying less then 8 items
|
||||
if( usItem && ubItemCount < WEAPONBOX_NUMBER )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user