add RGSS2/3 Input.repeat?

This commit is contained in:
cremno 2014-09-02 19:11:56 +02:00
parent 360cf240f6
commit 4b08eee81f
1 changed files with 7 additions and 2 deletions

View File

@ -599,8 +599,13 @@ void Input::update()
{ {
p->repeatCount++; p->repeatCount++;
/* Repeatsequence is [r...............(r...)+] */ bool repeated;
if (p->repeatCount > 15 && ((p->repeatCount % 4) == 0)) if (rgssVer >= 2)
repeated = p->repeatCount >= 24 && (p->repeatCount % 6) == 0;
else
repeated = p->repeatCount >= 16 && (p->repeatCount % 4) == 0;
if (repeated)
p->getState(p->repeating).repeated = true; p->getState(p->repeating).repeated = true;
return; return;