s1lentq/ReGameDLL_CS

a little bit about inaccurate variable types and names

Opened this issue · 0 comments

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