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 /console.c | |
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 'console.c')
-rw-r--r-- | console.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -24,6 +24,7 @@ #define ICON_MAX_ALIAS_LINES 40 // ** main console ** // +static Window *_iconsole_win; // Pointer to console window static bool _iconsole_inited; static char* _iconsole_buffer[ICON_BUFFER + 1]; static uint16 _iconsole_cbuffer[ICON_BUFFER + 1]; @@ -290,16 +291,13 @@ void IConsoleSwitch(void) _iconsole_win->height = _screen.height / 3; _iconsole_win->width = _screen.width; _iconsole_mode = ICONSOLE_OPENED; + SETBIT(_no_scroll, SCROLL_CON); break; - case ICONSOLE_OPENED: - DeleteWindowById(WC_CONSOLE, 0); - _iconsole_win = NULL; - _iconsole_mode = ICONSOLE_CLOSED; - break; - case ICONSOLE_FULL: + case ICONSOLE_OPENED: case ICONSOLE_FULL: DeleteWindowById(WC_CONSOLE, 0); _iconsole_win = NULL; _iconsole_mode = ICONSOLE_CLOSED; + CLRBIT(_no_scroll, SCROLL_CON); break; } |