From 6b2dc7a6fb2e7ec7eaf1a7e1c43ee2bfabf01115 Mon Sep 17 00:00:00 2001 From: ChrisMiuchiz Date: Sat, 7 Oct 2023 23:52:50 -0400 Subject: [PATCH] Remove goto from isleapp.cpp --- ISLE/isleapp.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index 9aefae60..2c758521 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -251,15 +251,14 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine } if (g_mousedown == 0) { -LAB_00401bc7: - if (g_mousemoved) { - g_mousemoved = FALSE; - } - } else if (g_mousemoved) { - if (g_isle) { + // Nothing + } + else if (g_mousemoved && g_isle) { g_isle->Tick(0); - } - goto LAB_00401bc7; + } + + if (g_mousemoved) { + g_mousemoved = FALSE; } } }