keep the numBouncesBeforeYield as an integer
This commit is contained in:
parent
192e44555e
commit
8aa50dacc7
|
@ -636,7 +636,7 @@
|
|||
observedDelay) /
|
||||
DESIRED_DELAY_BETWEEN_BOUNCES));
|
||||
MACHINE.params.maxNumBouncesBeforeYield =
|
||||
Math.max(MACHINE.params.maxNumBouncesBeforeYield + delta,
|
||||
Math.max(Math.floor(MACHINE.params.maxNumBouncesBeforeYield + delta),
|
||||
1);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user