-
-
Notifications
You must be signed in to change notification settings - Fork 437
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 #3738 createBuilding optional arguments not handled correctly #3778
Conversation
I don't think that original issue is valid. Developers should provide all vector arguments. It has more sense for me. You fixes only one case of this issue. The main problem hides in argument parser. |
Its more of a logic issue. What do you expect vector to receive? 3 coordinates. |
TheNormalnij is right. This should be fixed in the parser. Many functions rely on the syntax where each argument in [ ] is optional, such as createVehicle, createObject, etc. The method in the old parser, ReadVector3D, would simply insert 0 in place of any missing argument. The new parser should handle this as well, because the current behavior is confusing. In one function, you can provide a single argument, but in another, you have to provide all three, even though each one is marked as optional individually |
for now lets just treat vectors as |
Should be an easy fix
So, just default initialize values (CVector for example)? |
The point is that if a function accepts |
yeah thats what i meant |
Fix #3738
I think this is what the parser should take care of, that if the vector is optional, it should put 0 in the remaining fields