mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Added Right Click to time compression to fast forward a single hour
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user