mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-22 03:46:55 +01: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;
|
Window *w;
|
||||||
FOR_ALL_WINDOWS_FROM_FRONT(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;
|
return w;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user