Allow `EmuClientApi.SpeedMode(6400)` (to match GUI; Lua max was 6399)
logic broken since introduction in858f133f9
, though the limit wasn't 6400% at the time, that was changed in5f9757d7d
This commit is contained in:
parent
2350dddb69
commit
a137cc406b
|
@ -211,7 +211,7 @@ namespace BizHawk.Client.Common
|
|||
|
||||
public void SpeedMode(int percent)
|
||||
{
|
||||
if (percent.StrictlyBoundedBy(0.RangeTo(6400))) _mainForm.ClickSpeedItem(percent);
|
||||
if (percent is > 0 and <= 6400) _mainForm.ClickSpeedItem(percent);
|
||||
else _logCallback("Invalid speed value");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue