diff options
author | Darkvater <darkvater@openttd.org> | 2005-02-22 14:52:20 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-02-22 14:52:20 +0000 |
commit | 7746c4722b1be63eae53fe50be754b1ec0be8565 (patch) | |
tree | b49fb9bb8df94481ce40ba392c0f8fb12a775bec /ttd.h | |
parent | aa55bc1559a4261380055cd21f94817f7defaf18 (diff) | |
download | openttd-7746c4722b1be63eae53fe50be754b1ec0be8565.tar.xz |
(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)
Diffstat (limited to 'ttd.h')
-rw-r--r-- | ttd.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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" |