diff --git a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js index c74e4166e..0947e75fa 100644 --- a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js +++ b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js @@ -107,6 +107,18 @@ export function Jl3dDrivingNew(mixers,updatemmi,sound,translation,routegroup,dri DeviceDestroy(data.body); return; } + + if(data.type == "Simulation_Reset"){ + if(data.body == true ){ + restartTrain(); + } + } + } + + function restartTrain(){ + for(let i=0;i