From 2fbcb7a0364041b9007db8a892d62c0068fd4bfb Mon Sep 17 00:00:00 2001 From: Daryl Borth Date: Fri, 20 May 2022 13:13:01 -0600 Subject: [PATCH] simplify code --- source/menu.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/menu.cpp b/source/menu.cpp index 5e40c9e..7386eb4 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -3419,9 +3419,7 @@ static int MenuSettingsVideo() GCSettings.videomode = 0; break; case 10: - GCSettings.TurboModeEnabled++; - if (GCSettings.TurboModeEnabled > 1) - GCSettings.TurboModeEnabled = 0; + GCSettings.TurboModeEnabled ^= 1; break; }