]> git.tdb.fi Git - r2c2.git/commit
Be more permissive when checking route continuity
authorMikko Rasa <tdb@tdb.fi>
Thu, 12 Feb 2015 16:11:06 +0000 (18:11 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 12 Feb 2015 16:11:06 +0000 (18:11 +0200)
commit83c6923396fcfa42e6adf949b9476663f322748b
treec4a6c94c63c0ab66f82c2a3f44fb9babe58e3790
parent862d8bea6d31e6fe9a60747e0b9559f77e72bf44
Be more permissive when checking route continuity

In some cases more than one consecutive route may end on the same track,
or a route might only go one track past the previous one, with that track
being a turnout with undetermined path.  Allow skipping routes to deal
with these situations, as long as we don't go completely off route.
source/libr2c2/trainrouter.cpp
source/libr2c2/trainrouter.h