From: Mikko Rasa Date: Sun, 15 Feb 2015 15:46:22 +0000 (+0200) Subject: Don't check sequence points while applying routes X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=74f8c3beba5a6947a523119e3f26cf745725b511;p=r2c2.git Don't check sequence points while applying routes The preceding train's routes might not be applied yet. Instead queue a sequence check to be done when all routes have been applied. --- diff --git a/source/libr2c2/trainrouter.cpp b/source/libr2c2/trainrouter.cpp index 5a8d9f7..9a9d338 100644 --- a/source/libr2c2/trainrouter.cpp +++ b/source/libr2c2/trainrouter.cpp @@ -119,7 +119,7 @@ void TrainRouter::route_changed() if(!sequence_points.empty()) { const SequencePoint &sp = sequence_points.front(); - if(sp.block==fncb.block() && !sp.is_cleared()) + if(sp.block==fncb.block() && sp.preceding_train) { arrival = WAITING_FOR_SEQUENCE; sequence_check_pending = true;