]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/trainrouteplanner.h
Unoccupy destination during planning when the train has departed again
[r2c2.git] / source / libr2c2 / trainrouteplanner.h
index 54ecadb8e905cd19138ef5070f11cd88b16da75e..c4850d46a61c00185f9630b8259885d0582b5f5e 100644 (file)
@@ -34,7 +34,7 @@ private:
                float speed;
                TrainRouter *router;
                std::list<Route *> routes;
-               Track *track_history[3];
+               Track *track_history[2];
                std::list<TrainRouter::SequencePoint> sequence;
 
                TrainRoutingInfo(Train &);
@@ -71,6 +71,7 @@ private:
                float back_offset;
                TrainState state;
                Msp::Time::TimeDelta delay;
+               Msp::Time::TimeDelta duration;
                int waypoint;
                float distance_traveled;
                float remaining_estimate;