- if(_track->get_type().is_turnout())
- {
- /* A turnouts is the only track in its block. Go ahead and find the
- matching endpoint in the block. */
- for(unsigned i=0; i<beps.size(); ++i)
- if(beps[i].track==_track && beps[i].track_ep==_entry)
- return BlockIter(&block, i);
- }
- else
+ // See if this track matches an endpoint in the block
+ for(unsigned i=0; i<beps.size(); ++i)
+ if(beps[i].track==_track && beps[i].track_ep==_entry)
+ return BlockIter(&block, i);
+
+ if(!_track->get_type().is_turnout())