From bc7b3e2d62656e4f58912148a5ffb7832fb69bbd Mon Sep 17 00:00:00 2001 From: silversurfer Date: Tue, 1 Oct 2013 17:31:18 +0000 Subject: [PATCH] Bugfix for superheated weapons in loaded sector inventory after saving the game (by Moa) In revision 6434 a bug was introduced where all weapons in a loaded sector would be set to 45000 temperature after the game was saved. This is a temporary fix. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6459 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Strategic/Map Screen Interface Map Inventory.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Strategic/Map Screen Interface Map Inventory.cpp b/Strategic/Map Screen Interface Map Inventory.cpp index b77f165b..6fd9b5be 100644 --- a/Strategic/Map Screen Interface Map Inventory.cpp +++ b/Strategic/Map Screen Interface Map Inventory.cpp @@ -860,7 +860,11 @@ void CreateDestroyMapInventoryPoolButtons( BOOLEAN fExitFromMapScreen ) ClearUpTempUnSeenList( ); // undo item decay (will be saved once and only when entering sector) - HandleSectorCooldownFunctions( sSelMapX, sSelMapY, (INT8)iCurrentMapSectorZ, (WORLDITEM*) &(*pInventoryPoolList.begin()) , pInventoryPoolList.size(), TRUE , TRUE); +// HandleSectorCooldownFunctions( sSelMapX, sSelMapY, (INT8)iCurrentMapSectorZ, (WORLDITEM*) &(*pInventoryPoolList.begin()) , pInventoryPoolList.size(), TRUE , TRUE); + + // silversurfer: temporary bugfix for superheated weapons in loaded sector inventory after saving the game + // save time we have viewed those items to make the changes by HandleSectorCooldownFunctions() permanent + SetLastTimePlayerWasInSector( sSelMapX, sSelMapY, (INT8)iCurrentMapSectorZ ); // now save results SaveSeenAndUnseenItems( );