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

Fix #2852: add optional 'property' parameter to getVehicleHandling function #3177

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

XJMLN
Copy link
Contributor

@XJMLN XJMLN commented Sep 7, 2023

Fixes #2852

Added optional 'property' argument to get particular vehicle handling value.

Usage:
getVehicleHandling(vehicle, "mass")

@botder
Copy link
Member

botder commented Sep 17, 2023

I don't understand why the code (handling in general) has to "guess" what type each property is. All we need is an array for each entry in enum eHandlingProperty to tell you what the underlying type for the property is, because the type never changes.

@lopezloo lopezloo added bugfix Solution to a bug of any kind enhancement New feature or request and removed bugfix Solution to a bug of any kind labels Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add optional 'property' argument to getVehicleHandling
5 participants