]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/train.cpp
New routing system for trains
[r2c2.git] / source / libr2c2 / train.cpp
index 10227222daac98b38956c14975d0a334ad2cc3ab..7de62363455549e92360039850982b6995e5765a 100644 (file)
@@ -258,6 +258,8 @@ void Train::unplace()
 void Train::stop_at(Block *block)
 {
        stop_at_block = block;
+       if(active && !stop_at_block)
+               reserve_more();
 }
 
 bool Train::free_block(Block &block)