FS#5944 - Track type change breaks Two-Way EOL
Attached to Project:
OpenTTD
Opened by Mingwei Samuel (Hazzard) - Sunday, 16 March 2014, 01:00 GMT
Last edited by andythenorth (andythenorth) - Wednesday, 23 August 2017, 07:08 GMT
Opened by Mingwei Samuel (Hazzard) - Sunday, 16 March 2014, 01:00 GMT
Last edited by andythenorth (andythenorth) - Wednesday, 23 August 2017, 07:08 GMT
|
DetailsVersion: r26379 (probably all versions)
When Two-Way EOL is enabled, |
This task depends upon
You may need to enter "set yapf.rail_firstred_twoway_eol 1"
Note the different behavior when the depot is changed from electric to non-electric.
What happens here is that the wrong branch is being pruned when the first signal found is a red two-way signal but the best intermediate node so far is behind a junction, because the code starts pruning at the best intermediate node instead of at the segment that ends at the signal.
I have published a fix in my development branch (http://repo.or.cz/w/openttd/fttd.git/commit/2699f279fa7d75bbb09f1ddd07616f4743a6acef) in case anyone wants to pick it up.