From d3d617536002cfd336e0407f61dc97e5337ac9b8 Mon Sep 17 00:00:00 2001 From: Michael Mainguy Date: Mon, 1 Dec 2025 05:31:16 -0600 Subject: [PATCH] Fix mission brief trigger by using InputControlManager state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use InputControlManager.shipControlsEnabled instead of local flag - Remove unused _controlsEnabled field from Ship class - Fixes trigger press not dismissing mission brief screen 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/ship/ship.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ship/ship.ts b/src/ship/ship.ts index 562ffa3..c62ba7e 100644 --- a/src/ship/ship.ts +++ b/src/ship/ship.ts @@ -69,8 +69,6 @@ export class Ship { // Flag to prevent game end checks until gameplay has started private _gameplayStarted: boolean = false; - // Controls enabled state - private _controlsEnabled: boolean = true; // Scene observer references (for cleanup) private _physicsObserver: any = null; @@ -696,7 +694,8 @@ export class Ship { */ private handleShoot(): void { // If controls are disabled, fire mission brief trigger observable instead of shooting - if (!this._controlsEnabled) { + const inputManager = InputControlManager.getInstance(); + if (!inputManager.shipControlsEnabled) { log.debug('[Ship] Controls disabled - firing mission brief trigger observable'); this._onMissionBriefTriggerObservable.notifyObservers(); return;