mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-03-28 14:56:22 +01:00
Fix typo causing Input.repeat? to return true irregularly (Fixes #42)
This commit is contained in:
parent
f1f5f99133
commit
de4c5db79f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue