1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 09:29:10 +00:00

Fix #10280, 59645c6: Ignore double-click for unavailable town actions

This commit is contained in:
glx22
2023-02-10 05:05:16 +01:00
committed by rubidium42
parent 249141858c
commit 0fb6b3ca07

View File

@@ -297,7 +297,7 @@ public:
}
/* When double-clicking, continue */
if (click_count == 1 || y < 0) break;
if (click_count == 1 || y < 0 || !HasBit(this->available_actions, y)) break;
FALLTHROUGH;
}