X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrainrouter.cpp;h=d1cb6ff4a3a9b8eca35c439edcf8db3258e6e17b;hb=2fec8b40d8cd953e36362773e440e50cc4f94a91;hp=ca3e93d97d6f8b7126c10fa64f3c8aa212b00463;hpb=eb6c78e5a38dcf4513915b72d2dbe2e35e2958a1;p=r2c2.git diff --git a/source/libr2c2/trainrouter.cpp b/source/libr2c2/trainrouter.cpp index ca3e93d..d1cb6ff 100644 --- a/source/libr2c2/trainrouter.cpp +++ b/source/libr2c2/trainrouter.cpp @@ -111,8 +111,9 @@ void TrainRouter::route_changed() { // We are not at the end of the route now, but might have been before. arrival = ON_THE_WAY; - train.stop_at(0); train.refresh_blocks_from(*fncb); + if(!arrival) + train.stop_at(0); } else if(!arrival) {