mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-11 08:49:50 +00:00
(svn r22803) -Fix (r22796): clicking should not work either when hiding windows
This commit is contained in:
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
Block a user