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

a little bit about inaccurate variable types and names #971

Open
NoobWithCheats opened this issue Jun 30, 2024 · 0 comments
Open

a little bit about inaccurate variable types and names #971

NoobWithCheats opened this issue Jun 30, 2024 · 0 comments

Comments

@NoobWithCheats
Copy link

BOOL m_iDirection;

does it make sense to switch from BOOL to bool? and using bool m_bDirection; OR BOOL m_bDirection;?

int m_fFireOnEmpty;

It is only used to define true and false. Using bool m_bFireOnEmpty;

int m_iPlayEmptySound;

in general, there are no errors here, then we use only 1 and 0. It would be clearer if it were bool. Using bool m_bPlayEmptySound;

bool m_fSmokeTouching;
bool m_fFlashTouched;

bool m_bSmokeTouching; and bool m_bFlashTouched;
bool m_fSmokeTouchingLastFrame;

bool m_bSmokeTouchingLastFrame

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

No branches or pull requests

1 participant