按计划行车列车加载位置bug修改

This commit is contained in:
walker-sheng 2021-01-29 09:19:21 +08:00
parent 917705eea8
commit 1f3d9a6f3a

View File

@ -178,13 +178,19 @@ public class RoutePath {
float offset = 0;
if (this.start.isFunctionTrack()) {
float s = 0;
float point = this.start.getStopPointRight();
if (this.isRight()) {
s = this.start.getLen() - this.start.getStopPointRight();
} else {
s = this.start.getStopPointLeft();
point = s;
}
if (l < s) {
offset = this.start.getStopPointRight() + l;
if (this.isRight()) {
offset = point + l;
} else {
offset = point - l;
}
section = this.start;
} else {
l -= s;