Fix typo causing Input.repeat? to return true irregularly (Fixes #42)

This commit is contained in:
Struma 2021-05-21 17:48:56 -04:00 committed by Roza
parent f1f5f99133
commit de4c5db79f

View file

@ -1162,7 +1162,7 @@ void Input::update()
else
repeated = p->repeatCount >= 15 && ((p->repeatCount+1) % 4) == 0;
*/
bool repeated = p->repeatCount >= p->repeatStart && ((p->repeatCount+1) & p->repeatDelay) == 0;
bool repeated = p->repeatCount >= p->repeatStart && ((p->repeatCount+1) % p->repeatDelay) == 0;
p->getState(p->repeating).repeated |= repeated;
p->last_update = shState->runTime();