1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 02:19:09 +00:00

(svn r22803) -Fix (r22796): clicking should not work either when hiding windows

This commit is contained in:
rubidium
2011-08-21 16:48:31 +00:00
parent cb93a7a824
commit 81e352b4b6

View File

@@ -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;
}
}