The planner starts from the front buffer of the train, so it may generate
sequence points in the existing critical blocks.
can't rely on the resync code in block_reserved since we may need to
clear the stop marker to continue allocation. */
TrackIter track = train.get_block_allocator().first().track_iter();
+ list<SequencePoint>::iterator seq_begin = sequence_points.begin();
for(; track; track=track.next())
{
if(!advance_to_track(reserving_route, track))
}
if(&track->get_block()==fncb.block())
break;
+
+ if(seq_begin!=sequence_points.end() && seq_begin->block==&track->get_block())
+ {
+ current_sequence = seq_begin->sequence_out;
+ ++seq_begin;
+ }
}
+
+ sequence_points.erase(sequence_points.begin(), seq_begin);
}
if(!already_at_end)