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(qbx_vehiclepush/client): Check vehicle class #106

Merged
merged 1 commit into from
May 23, 2024
Merged

fix(qbx_vehiclepush/client): Check vehicle class #106

merged 1 commit into from
May 23, 2024

Conversation

SamShanks1
Copy link
Contributor

@SamShanks1 SamShanks1 commented May 23, 2024

Description

The "or" operator will return true if any of the conditions are true, if vehicleClass = 14 (boat) it will still return isValidVehicle because it does not equal 13. Using the "and" operator we can check it doesn't match any of these.

Checklist

  • I have personally loaded this code into an updated Qbox project and checked all of its functionality.
  • My pull request fits the contribution guidelines & code conventions.

The or operator will return true if any of the conditions are true, if vehicleClass = 14 (boat) it will still return isValidVehicle because it does ~= 13. Using and operator we can check it doesn't match any of these.
@Manason Manason merged commit f588e10 into Qbox-project:main May 23, 2024
2 checks passed
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.

2 participants