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
This commit is contained in:
silversurfer
2013-10-01 17:31:18 +00:00
parent 7b1124a596
commit bc7b3e2d62
@@ -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( );