Add: settings to limit your fast-forward game speed

By default this setting is set to 2500% normal game speed.
This commit is contained in:
Patric Stout
2021-02-28 15:41:03 +01:00
committed by Charles Pigott
parent 73fd634209
commit c3dc27e37e
17 changed files with 84 additions and 69 deletions

View File

@@ -33,7 +33,6 @@
#include "cocoa_wnd.h"
#include "../../blitter/factory.hpp"
#include "../../framerate_type.h"
#include "../../network/network.h"
#include "../../gfx_func.h"
#include "../../thread.h"
#include "../../core/random_func.hpp"
@@ -420,14 +419,10 @@ void VideoDriver_Cocoa::InputLoop()
_shift_pressed = (cur_mods & NSShiftKeyMask) != 0;
#if defined(_DEBUG)
if (_shift_pressed) {
this->fast_forward_key_pressed = _shift_pressed;
#else
if (_tab_is_down) {
this->fast_forward_key_pressed = _tab_is_down;
#endif
if (!_networking && _game_mode != GM_MENU) _fast_forward |= 2;
} else if (_fast_forward & 2) {
_fast_forward = 0;
}
if (old_ctrl_pressed != _ctrl_pressed) HandleCtrlChanged();
}