]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/track.cpp
Foundations of using physics simulation for trains
[r2c2.git] / source / libmarklin / track.cpp
index 030af70bc85fd1d2e667b4e47a24830a7ac915ea..208d40f10cdbbdfe09e81f6457c1a29a3da1a7c8 100644 (file)
@@ -293,6 +293,11 @@ unsigned Track::traverse(unsigned i, unsigned path) const
        throw Exception("Track endpoint did not have a counterpart");
 }
 
+unsigned Track::traverse(unsigned i) const
+{
+       return traverse(i, active_path);
+}
+
 TrackPoint Track::get_point(unsigned epi, unsigned path, float d) const
 {
        TrackPoint p = type.get_point(epi, path, d);