diff options
author | rubidium <rubidium@openttd.org> | 2011-08-21 16:48:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-08-21 16:48:31 +0000 |
commit | 81e352b4b6f7f72715646c7c39d3aec4100ea917 (patch) | |
tree | f342faa274e40fe42d39e095a03313fe7742ac35 | |
parent | cb93a7a824174f4bfbc602979eab62709c9e5f81 (diff) | |
download | openttd-81e352b4b6f7f72715646c7c39d3aec4100ea917.tar.xz |
(svn r22803) -Fix (r22796): clicking should not work either when hiding windows
-rw-r--r-- | src/window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp index 748ed8746..e512eb43a 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1350,7 +1350,7 @@ Window *FindWindowFromPt(int x, int y) { 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; } } |