mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
-fixed negative ammo prices
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@438 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ INT16 zVersionLabel[256] = { L"Beta v. 0.98" };
|
||||
#else
|
||||
|
||||
//RELEASE BUILD VERSION
|
||||
INT16 zVersionLabel[256] = { L"Release v1.13.435" };
|
||||
INT16 zVersionLabel[256] = { L"Release v1.13.438" };
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -556,7 +556,7 @@ void SetSkiFaceRegionHelpText( INVENTORY_IN_SLOT *pInv, MOUSE_REGION* pRegion,
|
||||
void RestoreTacticalBackGround();
|
||||
void DisplayPlayersOfferArea();
|
||||
UINT32 CalcShopKeeperItemPrice( BOOLEAN fDealerSelling, BOOLEAN fUnitPriceOnly, UINT16 usItemID, FLOAT dModifier, OBJECTTYPE *pItemObject );
|
||||
FLOAT ItemConditionModifier(UINT16 usItemIndex, INT8 bStatus);
|
||||
FLOAT ItemConditionModifier(UINT16 usItemIndex, INT16 bStatus);
|
||||
BOOLEAN RemoveItemFromPlayersOfferArea( INT8 bSlotIdInOtherLocation );
|
||||
|
||||
//Evaluate:
|
||||
@@ -3142,7 +3142,7 @@ UINT32 CalcShopKeeperItemPrice( BOOLEAN fDealerSelling, BOOLEAN fUnitPriceOnly,
|
||||
{
|
||||
// for bullets, ItemConditionModifier will convert the #ShotsLeft into a percentage
|
||||
uiUnitPrice += (UINT32)( CalcValueOfItemToDealer( gbSelectedArmsDealerID, usItemID, fDealerSelling ) *
|
||||
(pItemObject->ubShotsLeft[ubCnt] / Magazine[ Item[ usItemID ].ubClassIndex ].ubMagSize) *
|
||||
ItemConditionModifier(usItemID, pItemObject->ubShotsLeft[ubCnt]) *
|
||||
dModifier );
|
||||
|
||||
if ( fUnitPriceOnly )
|
||||
@@ -3255,7 +3255,7 @@ UINT32 CalcShopKeeperItemPrice( BOOLEAN fDealerSelling, BOOLEAN fUnitPriceOnly,
|
||||
}
|
||||
|
||||
|
||||
FLOAT ItemConditionModifier(UINT16 usItemIndex, INT8 bStatus)
|
||||
FLOAT ItemConditionModifier(UINT16 usItemIndex, INT16 bStatus)
|
||||
{
|
||||
FLOAT dConditionModifier = 1.0f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user