]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/train.h
Tighten safety measures
[r2c2.git] / source / libr2c2 / train.h
index 6b384f8220b9eece5e5873ead9ab07283d601755..42bbc375b25b1346fc55b457b04cf41ca45dab22 100644 (file)
@@ -63,8 +63,8 @@ private:
        Msp::Time::TimeStamp stop_timeout;
        unsigned functions;
 
+       BlockIter last_entry_block;
        Msp::Time::TimeStamp last_entry_time;
-       float travel_dist;
        bool pure_speed;
        SpeedQuantizer *speed_quantizer;
        bool accurate_position;
@@ -133,7 +133,7 @@ private:
        void block_state_changed(Block &, Block::State);
        void halt_event(bool);
        void block_reserved(const Block &, const Train *);
-       float get_reserved_distance_until(const Block *, bool) const;
+       float get_reserved_distance_until(const Block *) const;
 };
 
 } // namespace R2C2