fix precedence errors (#3611)
Fix a handful of precedence errors and 1 logic/precedence error. None of the code will compile as intended without these changes. Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
@@ -71,7 +71,7 @@ void StateHandler::update_binds()
|
||||
|
||||
void StateHandler::set_state(int state, int mask)
|
||||
{
|
||||
if (states_ & mask == state & mask) return;
|
||||
if ((states_ & mask) == (state & mask)) return;
|
||||
int old = states_;
|
||||
states_ = states_ & ~mask | state & mask;
|
||||
if (old != states_ && (old | states2_) != (states_ | states2_)) {
|
||||
|
||||
Reference in New Issue
Block a user