From bad8ff69a57740a5e9ca579184356316a2528b65 Mon Sep 17 00:00:00 2001 From: Ryan Young Date: Tue, 10 Oct 2023 05:53:26 +0000 Subject: [PATCH] fix(acela): prevent destination selector from showing when loading new tiles --- .../Acela/Default/CommonScripts/PowerCar_EngineScript.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/Assets/RSC/AcelaPack01/RailVehicles/Electric/Acela/Default/CommonScripts/PowerCar_EngineScript.ts b/src/mod/Assets/RSC/AcelaPack01/RailVehicles/Electric/Acela/Default/CommonScripts/PowerCar_EngineScript.ts index 9d3ac77a..97dfa781 100644 --- a/src/mod/Assets/RSC/AcelaPack01/RailVehicles/Electric/Acela/Default/CommonScripts/PowerCar_EngineScript.ts +++ b/src/mod/Assets/RSC/AcelaPack01/RailVehicles/Electric/Acela/Default/CommonScripts/PowerCar_EngineScript.ts @@ -627,7 +627,9 @@ const me = new FrpEngine(() => { }); const destinationTurnedOn$ = frp.compose( me.createOnCvChangeStreamFor("DestOnOff"), - frp.filter(v => v === 1) + frp.filter(v => v === 1), + // Sometimes this fires for other units... + frp.filter(_ => me.eng.GetIsEngineWithKey()) ); destinationTurnedOn$(_ => { destinationMenu.showPopup();