Skip to content
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

Trailer improvements #681

Merged
merged 3 commits into from
Jun 20, 2023
Merged

Trailer improvements #681

merged 3 commits into from
Jun 20, 2023

Conversation

Y-Less
Copy link
Collaborator

@Y-Less Y-Less commented Jun 18, 2023

  • Register a trailer from driver sync - Fixes [BEHAVIOR DIFFERENCE]: IsTrailerAttachedToVehicle #590
  • Separate cab and trailer - Having them in a union together really doesn't save that much space, since there's a towing variable required to differentiate the cases, plus the resulting code becomes a lot more complicated. There's also an argument to be had that being a trailer and a cab are not mutually exclusive - trains have both, baggage carts have both.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Alex Cole seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Alex Cole added 2 commits June 18, 2023 20:59
Having them in a union together really doesn't save that much space, since there's a `towing` variable required to differentiate the cases, plus the resulting code becomes a lot more complicated.  There's also an argument to be had that being a trailer and a cab are not mutually exclusive - trains have both, baggage carts have both.
@Y-Less Y-Less changed the title Register a trailer from driver sync Trailer improvements Jun 18, 2023
@AmyrAhmady AmyrAhmady merged commit 2678d9f into master Jun 20, 2023
@AmyrAhmady AmyrAhmady deleted the record-trailer branch June 20, 2023 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BEHAVIOR DIFFERENCE]: IsTrailerAttachedToVehicle
3 participants