Skip to content

Commit

Permalink
fix: properly allow 7 clients now
Browse files Browse the repository at this point in the history
  • Loading branch information
Torwent committed Feb 4, 2025
1 parent cea188d commit f7ce06a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions utils/input/mousezoom.simba
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion utils/input/remoteinput.simba
Original file line number Diff line number Diff line change
Expand Up @@ -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.' +
Expand Down

0 comments on commit f7ce06a

Please sign in to comment.