Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Conversation

NotSomething0
Copy link
Contributor

Due to the way boolean values were being assigned, faceCamera would always evaluate to true because of its default value. This change fixes the logical error and ensures boolean properties are properly set.

@jag3dagster
Copy link
Collaborator

jag3dagster commented Jan 16, 2025

This looks like a similar logic error as #672. Could you update your logic to match the formatting of the feedback in that PR with a single line instead of these additional if blocks please?

@NotSomething0
Copy link
Contributor Author

NotSomething0 commented Jan 16, 2025

Updated, I left the boolean check instead of just checking for nil since DrawMarker expects a boolean and the game doesn't care what you pass as a truthy value as long as it isn't nil, 0 or false.

Due to the way boolean values were being assigned, faceCamera would
always evaluate to true because of its default value. This change fixes
the logical error and ensures boolean properties are properly set.
Copy link
Collaborator

@jag3dagster jag3dagster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me @thelindat

@thelindat thelindat merged commit ebddb35 into overextended:master Jan 19, 2025
@NotSomething0 NotSomething0 deleted the patch-1 branch January 19, 2025 21:20
abdel1touimi pushed a commit to SaharaScripters/ox_lib that referenced this pull request Jan 26, 2025
Due to the way boolean values were being assigned, faceCamera would
always evaluate to true because of its default value. This change fixes
the logical error and ensures boolean properties are properly set.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants