diff options
author | Darkvater <Darkvater@openttd.org> | 2005-05-17 23:25:18 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-05-17 23:25:18 +0000 |
commit | b51c1905465706bc68dd4f6857004cf4246f8828 (patch) | |
tree | 75fae0176d0d0f4f2783c4fe01f038b7a399c5f7 /network_gui.c | |
parent | 73ea0646ae9b20c7fe751a62ed3fb18eabe3a792 (diff) | |
download | openttd-b51c1905465706bc68dd4f6857004cf4246f8828.tar.xz |
(svn r2348) - Fix: Do not scroll the game with the arrow keys when the chatbox is open
Diffstat (limited to 'network_gui.c')
-rw-r--r-- | network_gui.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/network_gui.c b/network_gui.c index 833ab72d0..9f8ff15f2 100644 --- a/network_gui.c +++ b/network_gui.c @@ -1363,6 +1363,7 @@ static void ChatWindowWndProc(Window *w, WindowEvent *e) switch (e->event) { case WE_CREATE: SendWindowMessage(WC_NEWS_WINDOW, 0, WE_CREATE, w->height, 0); + SETBIT(_no_scroll, SCROLL_CHAT); // do not scroll the game with the arrow-keys closed = false; break; @@ -1421,6 +1422,7 @@ press_ok:; case WE_DESTROY: SendWindowMessage(WC_NEWS_WINDOW, 0, WE_DESTROY, 0, 0); + CLRBIT(_no_scroll, SCROLL_CHAT); // If the window is not closed yet, it means it still needs to send a CANCEL if (!closed) { Window *parent = FindWindowById(WP(w,querystr_d).wnd_class, WP(w,querystr_d).wnd_num); |