]> git.tdb.fi Git - r2c2.git/commitdiff
Set routes created by the planner as temporary
authorMikko Rasa <tdb@tdb.fi>
Wed, 19 Mar 2014 20:15:57 +0000 (22:15 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 19 Mar 2014 20:21:07 +0000 (22:21 +0200)
source/libr2c2/trainrouteplanner.cpp

index 770c0ea537897a01ee0f3a70ae5418f6aa78927d..c5455899e6befc6f9f7e7c6830e7234d1357e5f5 100644 (file)
@@ -157,6 +157,7 @@ void TrainRoutePlanner::create_routes(RoutingStep &goal)
        {
                i->route = new Route(i->train->get_layout());
                i->route->set_name("Router");
+               i->route->set_temporary(true);
        }
 
        for(RoutingStep *i=&goal; i; i=i->prev)