]> git.tdb.fi Git - r2c2.git/commit
Avoid creating looping routes
authorMikko Rasa <tdb@tdb.fi>
Sat, 12 Apr 2014 19:45:27 +0000 (22:45 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 12 Apr 2014 19:45:27 +0000 (22:45 +0300)
commit54ab7c88976c860ea729e30a175fbc181f0d68cd
tree7c1334986b86043c99fdd89f6edcba7c4eb358f8
parent5eeb8f5749586b9aae2996d2143e300388d15611
Avoid creating looping routes

If th route went past its end, adding the turnout would cause a loop to
be created.  Trying to add the next track would then throw bad_chain.
source/libr2c2/trainrouteplanner.cpp