small change in gameplay.inputbuffer to hopefully prevent stack overflows.

This commit is contained in:
no 2021-06-10 13:54:16 +02:00
parent 0d5aaad4f0
commit 4ad12a3a59

View File

@ -122,7 +122,7 @@ public class InputBuffer {
ret = true; ret = true;
search = false; search = false;
} else { } else {
if(backCounter == pastFramesToCheck) { if(backCounter >= pastFramesToCheck) {
ret = false; ret = false;
search = false; search = false;
} }
@ -132,8 +132,9 @@ public class InputBuffer {
else {frameToCheck = startFrameCount - backCounter;} else {frameToCheck = startFrameCount - backCounter;}
} }
} }
startFrameCount = frameToCheck;
} }
startFrameCount = frameToCheck;
} }
return ret; return ret;