mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
@@ -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( );
|
||||
|
||||
Reference in New Issue
Block a user