ts2 / ts2-sim-server

TS2 SimServer, the core of the TS2 Simulator
https://ts2.github.io
GNU General Public License v2.0
5 stars 9 forks source link

trains do not depart if timefactor is 1x #44

Closed hklang10 closed 4 years ago

hklang10 commented 4 years ago

Steps to reproduce Open Drain, Set timefactor 1 in qt5 client. Select "pause" to begin Train BW01 will leave Bank station, stop at Waterloo platform and not continue to the depot.

If timefactor is set to 2, the train will operate again.

Issue appears to be caused by t.StoppedTime always being zero when timefactor == 1.

Fix? : declare t.StoppedTime as Float64. I will push a suggested fix soon.