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) --- ttd.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ttd.h') diff --git a/ttd.h b/ttd.h index 71b968376..24b193b0c 100644 --- a/ttd.h +++ b/ttd.h @@ -517,6 +517,16 @@ enum { MAX_SCREEN_HEIGHT = 1200, }; +/* In certain windows you navigate with the arrow keys. Do not scroll the + * gameview when here. Bitencoded variable that only allows scrolling if all + * elements are zero */ +enum { + SCROLL_CON = 0, + SCROLL_EDIT = 1, + SCROLL_SAVE = 2, +}; +VARDEF byte _no_scroll; + #include "functions.h" #include "variables.h" -- cgit v1.2.3-54-g00ecf