diff --git a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js index a89cd239e..466d5f96f 100644 --- a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js +++ b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js @@ -153,6 +153,7 @@ export function Jl3dDriving(updatemmi,sound,translation) { if (trainlisttest) { for (let tl = 0; tl 0 && trainmodel.speeds){ let speed = null; // console.log(traindata.group.children[0].progress); diff --git a/src/jlmap3d/main/model/RailList.js b/src/jlmap3d/main/model/RailList.js index 0a9ee2616..e0a56bf97 100644 --- a/src/jlmap3d/main/model/RailList.js +++ b/src/jlmap3d/main/model/RailList.js @@ -269,7 +269,7 @@ export function RailList(){ let directoffset1 = standsdata[n].position.x-64-scope.linkrail[linklist[j].code].lineleft.points[0].x; let directoffset2 = standsdata[n].position.x+64-scope.linkrail[linklist[j].code].lineleft.points[0].x; stop.direct1.percent = directoffset1/lengthfacts; - stop.direct2.percent = directoffset1/lengthfacts; + stop.direct2.percent = directoffset2/lengthfacts; console.log(scope.linkrail[linklist[j].code]); console.log("sectoffsetleft"); console.log(standsections[i].leftStopPointOffset); @@ -296,10 +296,10 @@ export function RailList(){ let directoffset1 = standsdata[n].position.x-64-scope.linkrail[linklist[j].code].lineleft.points[0].x; let directoffset2 = standsdata[n].position.x+64-scope.linkrail[linklist[j].code].lineleft.points[0].x; stop.direct1.percent = directoffset1/lengthfacts; - stop.direct2.percent = directoffset1/lengthfacts; + stop.direct2.percent = directoffset2/lengthfacts; console.log(scope.linkrail[linklist[j].code]); console.log(directoffset1); - console.log(directoffset1); + console.log(directoffset2); console.log("sectoffsetleft"); console.log(stop.direct2.percent); console.log(scope.linkrail[linklist[j].code].lengthfact);