From 8463e2ff578dfe7f239f0b807be1099c71fbe152 Mon Sep 17 00:00:00 2001 From: joylink_zhangsai <1021828630@qq.com> Date: Tue, 14 Feb 2023 17:33:32 +0800 Subject: [PATCH] =?UTF-8?q?ATS=E7=9A=84=E5=BC=80=E5=85=B3=E9=97=A8?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E5=A2=9E=E5=8A=A0=E4=BF=AE=E6=94=B9=E9=97=A8?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../joylink/rtss/simulation/cbtc/onboard/ATP/ATPService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/onboard/ATP/ATPService.java b/src/main/java/club/joylink/rtss/simulation/cbtc/onboard/ATP/ATPService.java index fb770258a..7603d50c4 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/onboard/ATP/ATPService.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/onboard/ATP/ATPService.java @@ -522,7 +522,9 @@ public class ATPService { } VirtualRealityTrain.Door door = train.getDoorByDirection(doorIsRight); if (!Objects.equals(door.isOpen(), open)) { + train.setDoorSelection(doorIsRight ? VirtualRealityTrain.DoorSelection.R : VirtualRealityTrain.DoorSelection.L); openOrCloseDoor(simulation, train, doorIsRight, open); + train.setDoorSelection(VirtualRealityTrain.DoorSelection.Z); } }