changeset 17994:b7800d6fd517 draft

(svn r22803) -Fix (r22796): clicking should not work either when hiding windows
author rubidium <rubidium@openttd.org>
date Sun, 21 Aug 2011 16:48:31 +0000
parents aac454b5ae05
children 4cdf18493a2c
files src/window.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1350,7 +1350,7 @@
 {
 	Window *w;
 	FOR_ALL_WINDOWS_FROM_FRONT(w) {
-		if (IsInsideBS(x, w->left, w->width) && IsInsideBS(y, w->top, w->height)) {
+		if (MayBeShown(w) && IsInsideBS(x, w->left, w->width) && IsInsideBS(y, w->top, w->height)) {
 			return w;
 		}
 	}