mirror of https://github.com/OpenTTD/OpenTTD
(svn r22803) -Fix (r22796): clicking should not work either when hiding windows
parent
cb93a7a824
commit
81e352b4b6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue