]> git.tdb.fi Git - r2c2.git/commit
Allow an undetermined turnout at the beginning of a route
authorMikko Rasa <tdb@tdb.fi>
Thu, 5 Feb 2015 14:01:13 +0000 (16:01 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 5 Feb 2015 14:01:13 +0000 (16:01 +0200)
commit5c3d55f48318bb16865012c13619990004747090
tree30a83d00255ce4a7587af410b8706c61d0599b96
parent462a04be004ab4b0ff3ce14c51a19b50271b17c7
Allow an undetermined turnout at the beginning of a route

If route plans are regenerated when the train's last vehicle is on the
sensor following a turnout in a points-facing movement, the first track
of the lead route is a turnout with undetermined path.  Route_changed
would then try to figure out which route the next allocation will occur
on and fail at the very beginning because advance_to_track refused to
use the undetermined turnout.
source/libr2c2/trainrouter.cpp
source/libr2c2/trainrouter.h