]> git.tdb.fi Git - r2c2.git/commitdiff
Fix critical block logic
authorMikko Rasa <tdb@tdb.fi>
Thu, 12 Feb 2015 14:46:45 +0000 (16:46 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 12 Feb 2015 15:52:19 +0000 (17:52 +0200)
First noncritical block is not reliable, as it could be outside of the
train's allocated blocks and not guaranteed to set to a consistent path.
Worse, the get_first_noncritical_block function could return a block on
the other side of a turnout which is changing path, and is_block_critical
used completely different logic.


No differences found