summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2005-01-28 09:30:19 +0000
committerdominik <dominik@openttd.org>2005-01-28 09:30:19 +0000
commitb4b134e527cb09abbb6985d399afeb019a37a227 (patch)
tree13c8c5c9e34ceffa784392d5729cf1d9fb89b1be /ttd.c
parentc8d084a85e4eb2b20055cffc1bcbddf16b5e337f (diff)
downloadopenttd-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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ttd.c b/ttd.c
index 20c7798cd..0ebd341cf 100644
--- a/ttd.c
+++ b/ttd.c
@@ -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;