Allow `EmuClientApi.SpeedMode(6400)` (to match GUI; Lua max was 6399)

logic broken since introduction in 858f133f9, though the limit wasn't 6400% at
the time, that was changed in 5f9757d7d
This commit is contained in:
YoshiRulz 2023-02-10 13:46:03 +10:00
parent 2350dddb69
commit a137cc406b
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}