Added Right Click to time compression to fast forward a single hour

This commit is contained in:
Buscher
2025-08-24 15:06:10 -03:00
committed by majcosta
parent 3c44f133fd
commit 1004ab6c8c
5 changed files with 36 additions and 1 deletions
+6
View File
@@ -45,6 +45,9 @@ BOOLEAN fClockMouseRegionCreated = FALSE;
BOOLEAN fTimeCompressHasOccured = FALSE;
// run time compression till next hour
bool stopTimeCompressionNextHour = false;
//This value represents the time that the sector was loaded. If you are in sector A9, and leave
//the game clock at that moment will get saved into the temp file associated with it. The next time you
//enter A9, this value will contain that time. Used for scheduling purposes.
@@ -525,6 +528,9 @@ void SetGameTimeCompressionLevel( UINT32 uiCompressionRate )
{
Assert( uiCompressionRate < NUM_TIME_COMPRESS_SPEEDS );
if( uiCompressionRate == TIME_COMPRESS_X0 )
stopTimeCompressionNextHour = false;
if( guiCurrentScreen == GAME_SCREEN )
{
if( uiCompressionRate != TIME_COMPRESS_X1 )