From aa516af4349e3f48eaa8ca1af09a0129b583a165 Mon Sep 17 00:00:00 2001 From: ChrisMiuchiz Date: Sun, 8 Oct 2023 10:10:16 -0400 Subject: [PATCH] Remove goto from isleapp.cpp (#188) * Remove goto from isleapp.cpp * Simplify if statement and make indent consistent --- ISLE/isleapp.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index 9aefae60..503a7128 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -250,16 +250,12 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine break; } - if (g_mousedown == 0) { -LAB_00401bc7: - if (g_mousemoved) { - g_mousemoved = FALSE; - } - } else if (g_mousemoved) { - if (g_isle) { - g_isle->Tick(0); - } - goto LAB_00401bc7; + if (g_mousedown && g_mousemoved && g_isle) { + g_isle->Tick(0); + } + + if (g_mousemoved) { + g_mousemoved = FALSE; } } }