From f7ce06a3c3b9ac928a42e2bc9f39ddf31ccf14b8 Mon Sep 17 00:00:00 2001 From: Torwent Date: Wed, 5 Feb 2025 00:06:09 +0100 Subject: [PATCH] fix: properly allow 7 clients now --- utils/input/mousezoom.simba | 22 +++++++++++----------- utils/input/remoteinput.simba | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/utils/input/mousezoom.simba b/utils/input/mousezoom.simba index 580a7d21..ccbea7c6 100644 --- a/utils/input/mousezoom.simba +++ b/utils/input/mousezoom.simba @@ -479,16 +479,16 @@ function TRSGameTabs.GetCurrentTab(): ERSGameTab; override; begin Result := inherited; - if not WL.GameSettings.MouseWheelConfirmed and (Result = ERSGameTab.OPTIONS) then - if (Options.GetCurrentTab() = ERSOptionsTab.DISPLAY) then - begin - WL.GameSettings.MouseWheel := SRL.CountColor(200, Self.Bounds) = 0; - WL.GameSettings.MouseWheelConfirmed := True; + if Result <> ERSGameTab.OPTIONS then Exit; + if WL.GameSettings.MouseWheelConfirmed then Exit; + if Options.GetCurrentTab() <> ERSOptionsTab.DISPLAY then Exit; - if not WL.GameSettings.MouseWheel then - begin - RSMouseZoom.ZoomLevel := -1; - MM2MS.ZoomLevel := -1; - end; - end; + WL.GameSettings.MouseWheel := SRL.CountColor(200, Self.Bounds) = 0; + WL.GameSettings.MouseWheelConfirmed := True; + + if not WL.GameSettings.MouseWheel then + begin + RSMouseZoom.ZoomLevel := -1; + MM2MS.ZoomLevel := -1; + end; end; diff --git a/utils/input/remoteinput.simba b/utils/input/remoteinput.simba index ba759018..f93344fc 100644 --- a/utils/input/remoteinput.simba +++ b/utils/input/remoteinput.simba @@ -26,7 +26,7 @@ begin inherited; count := EIOS_GetClients(False); - if count >= {%codetools off} %0111 {%codetools on} then + if count > {%codetools off} %0111 {%codetools on} then TerminateScript( 'You seem to be running ' + ToStr(count) + ' simba scripts.' + LineEnding + 'WaspLib is not meant for gold farming, the maximum allowed are 7 instances.' +