-
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
Skip searching for best emergency lane for non-car vehicles #1408
Skip searching for best emergency lane for non-car vehicles #1408
Conversation
Are there potentially other situations where we might run in to trouble with non-car vehicle having emergency flag set? Looking at
If you find all references to |
The thing is, before use of that method there is a check if vehicle is vanilla VehicleType |
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.
Built from source as RELEASE, tested in game breifly - didn't notice any issues.
LGTM 👍
Want me to prep a hotfix milestone for STABLE/TEST, or will this be going in 11.6.5.0 -> TEST? |
Naah, we are going according to plan, so this will be in |
I bet this can be written cleaner
but if it works, it works :D |
Airport DLC introduced new case when some vehicle flags can be used.
New usage can be found in
PassengerPlaneAI
- combination ofEmergency
andEmergency2
andWaitingCargo
flags represents assignment of passenger aircraft to one of six Airlines (new DLC feature). Because of that some aircrafts are wasting time in simulation loop trying to find best lane. Since our impl. is using lane routing created byRoutingManager
probably better lane cannot be found (we don't collectPlane
lane transition data - although might be required in #1368) also missingis vehicle Car check
is really old bug (2017) but was not used before in such way.Removed redundant
![image](https://user-images.githubusercontent.com/19638970/153974196-917d82b6-2cf6-477e-8aa5-5e3c9a3518f4.png)
if
tests, merged into one.isLargeVehicle
: