forked from mirror/OpenTTD
(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
This commit is contained in:
5
ttd.c
5
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;
|
||||
|
Reference in New Issue
Block a user