-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow vehicles to use restricted lanes when spawning or arriving at destination #1381
Allow vehicles to use restricted lanes when spawning or arriving at destination #1381
Conversation
Note: workaround from #85 no longer be necessary 😉 |
Will this merit a cargo vehicle despawn (I assume not as if the bug affected them they wouldn't spawn...)? |
Just for clarification, is this change limited to cargo vehicles, or is it all vehicles? (it looks like all vehicles on cursory glance, whcih is ideal imo) |
Yeah, but reading issue description and all your findings (#85 (comment)) this is exactly the fix for that problem #233 fixed only one, minor edge case 😄
It will fix case where cargo vehicle could not find return path to source and despawn. Sometimes they can spawn but despawn on return. Obviously problem with spawning is less visible because you have no chance seeing it until you select building and watch vehicle counter. |
Applies to all vehicles. |
Ok, so no need to update pathfinder edition number or despawn any vehicles when user loads savegame from prior pathfinder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build from PR as RELEASE, tested in-game - everything seems to be working great 👍
Publishing this today? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build and tested ingame. Imho all working.
Improved
CanUseLane
PathFind function to skip checking vehicle restrictions at thestart
andend
lanes of the calculating path. Solves issues with spawning and delivering goods/industry productsCloses #1380
Fixes #85
It may also fix #494 since on some screenshots roads look like 6-lane with bus. Issue itself is pretty weird so... no idea.
Note: workaround from #85 no longer be necessary 😉
Build: zip