mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 16:56:36 +00:00
fix build menu shortcut
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user