列车跳停bug修改
This commit is contained in:
parent
1f6b77b26a
commit
77459e2a98
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user