mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Update ShopKeeper Interface.cpp
reworking r9343 - already decided in IsItemlegal - if it ain't legal, it won't be shown in ShopKeeperInventory, no need to bother with it again
This commit is contained in:
@@ -2896,13 +2896,6 @@ BOOLEAN DetermineArmsDealersSellingInventory( )
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
//shadooow: do not sell any item that is limited to specific system and this system isn't enabled
|
|
||||||
if (((Item[iter->object.usItem].usLimitedToSystem & FOOD_SYSTEM_FLAG) && !UsingFoodSystem()) || ((Item[iter->object.usItem].usLimitedToSystem & DISEASE_SYSTEM_FLAG) && !gGameExternalOptions.fDisease))
|
|
||||||
{
|
|
||||||
++iter;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool increment = true;
|
bool increment = true;
|
||||||
if (ItemIsSpecial(*iter) == false) {
|
if (ItemIsSpecial(*iter) == false) {
|
||||||
StoreObjectsInNextFreeDealerInvSlot( &(*iter), gpTempDealersInventory, gbSelectedArmsDealerID );
|
StoreObjectsInNextFreeDealerInvSlot( &(*iter), gpTempDealersInventory, gbSelectedArmsDealerID );
|
||||||
|
|||||||
Reference in New Issue
Block a user