fix build menu shortcut

This commit is contained in:
evanpelle
2025-07-13 13:08:49 -07:00
parent f877756125
commit fab1f265cb
+5
View File
@@ -136,6 +136,11 @@ export class BuildMenu extends LitElement implements Layer {
if (!this.game.myPlayer()?.isAlive()) {
return;
}
if (!this._hidden) {
// Players sometimes hold control while building a unit,
// so if the menu is already open, ignore the event.
return;
}
const clickedCell = this.transformHandler.screenToWorldCoordinates(
e.x,
e.y,