按计划行车列车加载位置bug修改
This commit is contained in:
parent
917705eea8
commit
1f3d9a6f3a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user