The International Simutrans Forum

 

Author Topic: [Bug] priority mail did not query the priority mail network  (Read 111 times)

0 Members and 1 Guest are viewing this topic.

Offline Freahk

  • Devotee
  • *
  • Posts: 1470
  • Languages: DE, EN
[Bug] priority mail did not query the priority mail network
« on: April 10, 2021, 03:30:15 AM »
See the PR
https://github.com/jamespetts/simutrans-extended/pull/369

Quote
The path explorer correctly explored the prioritymail network but express mail used the precalculated normal mail network to move around.
This effectively led to pure express mail routes being entirely ignored by any mail (except from very small amounts of mail. It is yet unclear to me how those few units made their way into pure priority mail routes)

This fix also comes with a slight code cleanup as it was caused by a mistaken conditional handling where no condition was needed at all.
« Last Edit: April 10, 2021, 10:31:37 AM by Freahk »

Offline Vladki

  • Devotee
  • *
  • Posts: 3714
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Re: [Bug] priority mail did not query the priority mail network
« Reply #1 on: April 10, 2021, 09:21:37 AM »
Thanks for finding that. I suspected that behavior long ago, but had no idea how to prove that.