Skip to content

Commit 28afece

Browse files
committed
Remove incorrect double negation.
1 parent d2c1554 commit 28afece

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/BizHawk.Client.Common/controllers/ClickyVirtualPadController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ public void Toggle(string button)
3838
=> _ = _pressed.ToggleMembership(button);
3939

4040
public void SetBool(string button, bool value)
41-
=> _pressed.SetMembership(button, shouldBeMember: !value);
41+
=> _pressed.SetMembership(button, shouldBeMember: value);
4242
}
4343
}

src/BizHawk.Client.EmuHawk/tools/BasicBot/BasicBot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ private void PressButtons(bool clear_log)
992992
foreach (var button in Emulator.ControllerDefinition.BoolButtons)
993993
{
994994
double probability = _cachedControlProbabilities[button];
995-
bool pressed = !(rand.Next(100) < probability);
995+
bool pressed = rand.Next(100) < probability;
996996

997997
InputManager.ClickyVirtualPadController.SetBool(button, pressed);
998998
}

0 commit comments

Comments
 (0)