mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
-fixed BR's not restocking
-fixed 90210 not working -fixed 8 character IMP names not working git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@353 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+2
-2
@@ -669,7 +669,7 @@ void DailyUpdateOfBobbyRaysNewInventory()
|
||||
if( LaptopSaveInfo.BobbyRayInventory[ i ].ubQtyOnOrder == 0)
|
||||
{
|
||||
//if the qty on hand is half the desired amount or fewer
|
||||
if( LaptopSaveInfo.BobbyRayInventory[ i ].ubQtyOnHand <= (StoreInventory[ usItemIndex ][ BOBBY_RAY_NEW ] / 2 ) )
|
||||
if( LaptopSaveInfo.BobbyRayInventory[ i ].ubQtyOnHand <= (StoreInventory[ usItemIndex ][ BOBBY_RAY_NEW ] / 2 * gGameOptions.ubBobbyRay ) )
|
||||
{
|
||||
// remember value of the "previously eligible" flag
|
||||
fPrevElig = LaptopSaveInfo.BobbyRayInventory[ i ].fPreviouslyEligible;
|
||||
@@ -766,7 +766,7 @@ UINT8 HowManyBRItemsToOrder(UINT16 usItemIndex, UINT8 ubCurrentlyOnHand, UINT8 u
|
||||
|
||||
Assert(usItemIndex < MAXITEMS);
|
||||
// formulas below will fail if there are more items already in stock than optimal
|
||||
Assert(ubCurrentlyOnHand <= StoreInventory[ usItemIndex ][ ubBobbyRayNewUsed ]);
|
||||
Assert(ubCurrentlyOnHand <= StoreInventory[ usItemIndex ][ ubBobbyRayNewUsed ] * gGameOptions.ubBobbyRay) ;
|
||||
Assert(ubBobbyRayNewUsed < BOBBY_RAY_LISTS);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user