]> git.tdb.fi Git - r2c2.git/commit
Use cached path length from occupied_tracks
authorMikko Rasa <tdb@tdb.fi>
Mon, 23 Feb 2015 14:41:02 +0000 (16:41 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 23 Feb 2015 14:41:02 +0000 (16:41 +0200)
commit5b71cb905051d654c150cb0e098cade0cb502105
tree560373d32b129a115bc2fb1fb6e5479ceca58db7
parent44e13f6732f206aa72ff7b001d77fe59bf2830ee
Use cached path length from occupied_tracks

TrackType::get_path_length is not only a function call but also loops
through all parts to calculate the length.
source/libr2c2/trainrouteplanner.cpp