mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
- improved cooldown/decay functions. every time a sector inventory gets loaded, its inventory gets cooled down, thus all accessible world items always have the correct values.
- OVERHEATING_SET_ZERO_UPON_NEW_SECTOR is not used anymore git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5443 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -135,6 +135,8 @@
|
||||
|
||||
#include "sgp_logger.h"
|
||||
|
||||
#include "Map Screen Interface Map Inventory.h" // added by Flugente
|
||||
|
||||
//forward declarations of common classes to eliminate includes
|
||||
class OBJECTTYPE;
|
||||
class SOLDIERTYPE;
|
||||
@@ -3001,6 +3003,11 @@ BOOLEAN EnterSector( INT16 sSectorX, INT16 sSectorY , INT8 bSectorZ )
|
||||
// This function will either hide or display the tree tops, depending on the game setting
|
||||
SetTreeTopStateForMap();
|
||||
|
||||
// Flugente: certain features need to alter an item's temperature value depending on the time passed
|
||||
// if we do these functions here and adjust for the time passed since this sector was loaded last, it will seem to the player
|
||||
// as if these checks are always performed in any sector
|
||||
SectorInventoryCooldownFunctions(sSectorX, sSectorY, bSectorZ);
|
||||
|
||||
return TRUE; //because the map was loaded.
|
||||
}
|
||||
|
||||
@@ -6113,9 +6120,6 @@ BOOLEAN HandleDefiniteUnloadingOfWorld( UINT8 ubUnloadCode )
|
||||
//if we arent loading a saved game
|
||||
if( !(gTacticalStatus.uiFlags & LOADING_SAVED_GAME ) )
|
||||
{
|
||||
// Flugente: Set temperatures of all items in the old sector to zero before entering a new sector
|
||||
CoolDownWorldItems( TRUE );
|
||||
|
||||
// Save the current sectors Item list to a temporary file, if its not the first time in
|
||||
SaveCurrentSectorsInformationToTempItemFile();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user