Skip to content

Commit

Permalink
fix: maxtime now is converted to milliseconds properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Torwent committed Jul 23, 2024
1 parent 8a75861 commit 381a025
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions optional/handlers/alchhandler.simba
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ function TScriptForm.CreateAlchemyPanel(): TTabSheet;
end;


procedure TScriptForm._OnItemListSelected(sender: TObject);
procedure TScriptForm._OnItemListSelected({$H-}sender: TObject);{$H+}
var
btn: TButton;
begin
Expand All @@ -612,7 +612,7 @@ function TScriptForm.CreateAlchemyPanel(): TTabSheet;
btn.setEnabled(True);
end;

procedure TScriptForm._OnAlchListSelected(sender: TObject);
procedure TScriptForm._OnAlchListSelected({$H-}sender: TObject);{$H+}
var
btn: TButton;
begin
Expand Down
2 changes: 1 addition & 1 deletion osr/basescript.simba
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ begin
ProgressReport.PTimeRunning := @Self.TimeRunning;

if maxTime > 0 then
Self.TimeLimit := Self.TimeRunning.ElapsedTime() + maxTime
Self.TimeLimit := Self.TimeRunning.ElapsedTime() + (maxTime * ONE_MINUTE)
else
Self.TimeLimit := 0;

Expand Down

0 comments on commit 381a025

Please sign in to comment.