small change in gameplay.inputbuffer to hopefully prevent stack overflows.
This commit is contained in:
parent
0d5aaad4f0
commit
4ad12a3a59
@ -122,7 +122,7 @@ public class InputBuffer {
|
||||
ret = true;
|
||||
search = false;
|
||||
} else {
|
||||
if(backCounter == pastFramesToCheck) {
|
||||
if(backCounter >= pastFramesToCheck) {
|
||||
ret = false;
|
||||
search = false;
|
||||
}
|
||||
@ -132,8 +132,9 @@ public class InputBuffer {
|
||||
else {frameToCheck = startFrameCount - backCounter;}
|
||||
}
|
||||
}
|
||||
startFrameCount = frameToCheck;
|
||||
|
||||
}
|
||||
startFrameCount = frameToCheck;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user