diff options
author | Patric Stout <truebrain@openttd.org> | 2021-02-28 15:41:03 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2021-02-28 18:04:51 +0000 |
commit | c3dc27e37e177675c8a54ef507de48b61ed6da2c (patch) | |
tree | e42eb666cf8f22c17a0a4042bc62043ecda6c3b8 /src/video/cocoa | |
parent | 73fd634209a9d54dd167a579e4bb3cced177b896 (diff) | |
download | openttd-c3dc27e37e177675c8a54ef507de48b61ed6da2c.tar.xz |
Add: settings to limit your fast-forward game speed
By default this setting is set to 2500% normal game speed.
Diffstat (limited to 'src/video/cocoa')
-rw-r--r-- | src/video/cocoa/cocoa_v.mm | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm index dd49cd211..523a408b1 100644 --- a/src/video/cocoa/cocoa_v.mm +++ b/src/video/cocoa/cocoa_v.mm @@ -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(); } |