From be7e4f7a834a8550ba8abfc5b9aad4c0e22b6d95 Mon Sep 17 00:00:00 2001 From: Jade Date: Thu, 2 Dec 2021 10:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E9=80=89=E9=9B=B6=E4=BD=8D=E4=B8=8D?= =?UTF-8?q?=E7=BB=99=E7=89=B5=E5=BC=95=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cbtc/ATS/operation/handler/DriverOperateHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/operation/handler/DriverOperateHandler.java b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/operation/handler/DriverOperateHandler.java index 073c613cb..feb7b1cbf 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/operation/handler/DriverOperateHandler.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/operation/handler/DriverOperateHandler.java @@ -34,6 +34,10 @@ public class DriverOperateHandler { VirtualRealityTrain train = simulation.getRepository().getOnlineTrainBy(groupNumber); // if (train.isSignalEB() && percent == -2) // ATPService.cancelSignalEB(train); + // 门选不是零位,不给牵引力 + if (!train.getDoorSelection().equals(VirtualRealityTrain.DoorSelection.Z)) { + return; + } if ((percent <= 1 && percent >= -1) || percent == -2) { train.setLeverPosition(percent); }