From 7746c4722b1be63eae53fe50be754b1ec0be8565 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 22 Feb 2005 14:52:20 +0000 Subject: (svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h) --- window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'window.c') diff --git a/window.c b/window.c index 3dbb0fbe9..c65b69c7f 100644 --- a/window.c +++ b/window.c @@ -669,7 +669,6 @@ Window *FindWindowFromPt(int x, int y) return NULL; } - void InitWindowSystem(void) { IConsoleClose(); @@ -677,6 +676,7 @@ void InitWindowSystem(void) _last_window = _windows; memset(_viewports, 0, sizeof(_viewports)); _active_viewports = 0; + _no_scroll = 0; } static void DecreaseWindowCounters(void) -- cgit v1.2.3-54-g00ecf