diff options
author | dominik <dominik@openttd.org> | 2005-01-28 09:30:19 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2005-01-28 09:30:19 +0000 |
commit | b4b134e527cb09abbb6985d399afeb019a37a227 (patch) | |
tree | 13c8c5c9e34ceffa784392d5729cf1d9fb89b1be /ttd.c | |
parent | c8d084a85e4eb2b20055cffc1bcbddf16b5e337f (diff) | |
download | openttd-b4b134e527cb09abbb6985d399afeb019a37a227.tar.xz |
(svn r1703) - Fix: Scrolling with the arrow keys is now smooth and it now also scrolls exactly in tile direction if e.g. up and left are pressed
Diffstat (limited to 'ttd.c')
-rw-r--r-- | ttd.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1112,6 +1112,8 @@ static void DoAutosave(void) ShowErrorMessage(INVALID_STRING_ID, STR_AUTOSAVE_FAILED, 0, 0); } +extern void HandleKeyScrolling(void); + void GameLoop(void) { int m; @@ -1123,6 +1125,9 @@ void GameLoop(void) RedrawAutosave(); } + // handle scrolling of the main window + if (_dirkeys) HandleKeyScrolling(); + // make a screenshot? if ((m=_make_screenshot) != 0) { _make_screenshot = 0; |