(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:
dominik
2005-01-28 09:30:19 +00:00
parent c8d084a85e
commit b4b134e527
2 changed files with 33 additions and 29 deletions

5
ttd.c
View File

@@ -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;