From 7215d004fca7830e2f42f20ad8f6e9f6d215087c Mon Sep 17 00:00:00 2001 From: Flugente Date: Sat, 4 Jul 2020 20:07:53 +0000 Subject: [PATCH] Fix: unnecessary call for intel-based arms dealer inventory is called very often if the lua function is empty git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8842 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Arms Dealer Init.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Tactical/Arms Dealer Init.cpp b/Tactical/Arms Dealer Init.cpp index b5b861434..9d669ecf1 100644 --- a/Tactical/Arms Dealer Init.cpp +++ b/Tactical/Arms Dealer Init.cpp @@ -2177,9 +2177,6 @@ UINT32 CalculateSimpleItemRepairCost( UINT8 ubArmsDealer, UINT16 usItemIndex, IN BOOLEAN DoesItemAppearInDealerInventoryList( UINT8 ubArmsDealer, UINT16 usItemIndex, BOOLEAN fPurchaseFromPlayer ) { - // Flugente: a dealer's inventory is defined in lua if they deal in intel - HandlePossibleArmsDealerIntelRefresh(FALSE); - // the others will buy only things that appear in their own "for sale" inventory lists DEALER_POSSIBLE_INV* pDealerInv = GetPointerToDealersPossibleInventory( ubArmsDealer ); Assert( pDealerInv != NULL );