列车跳停bug修改

This commit is contained in:
walker-sheng 2021-08-04 09:37:12 +08:00
parent 1f6b77b26a
commit 77459e2a98

View File

@ -72,7 +72,7 @@ public class SpeedCurve {
float stopDistance = ma.calculateDistanceOfAtoEnd(); float stopDistance = ma.calculateDistanceOfAtoEnd();
float speedMax = Math.min(train.getAtoSpeedMax(), train.getSpeedLimit() * 0.9f); float speedMax = Math.min(train.getAtoSpeedMax(), train.getSpeedLimit() * 0.9f);
SpeedCurve atoStopCurve; SpeedCurve atoStopCurve;
if (train.isNextParking() || train.isHold()) { // 列车下一站停车 if (!train.isJump() && (train.isNextParking() || train.isHold())) { // 列车下一站停车
Section target = train.getTarget(); Section target = train.getTarget();
if (target != null) { if (target != null) {
float stopPoint = target.getStopPointByDirection(right); float stopPoint = target.getStopPointByDirection(right);