Skip to content

Commit c824b1c

Browse files
committed
fix(walker): Walker.Click will now check if there's an interface open
1 parent ae7abc0 commit c824b1c

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

osrs/position/map/mapdebugger.simba

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ begin
342342
Self.ImageBox.OnImgMouseMove := @Self.ImgBoxMouseMove;
343343
Self.ImageBox.OnImgMouseDown := @Self.ImgBoxMouseDown;
344344

345-
Form.ShowModal();
345+
form.ShowModal();
346346
end;
347347

348348
(*

osrs/walker.simba

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,12 @@ var
535535
begin
536536
Self.RedClicked := False;
537537

538+
if MSInterface.IsOpen() then
539+
begin
540+
Self.Walking := False;
541+
Exit;
542+
end;
543+
538544
if MainScreen.IsUpText('>') and not Self.ActionUpText.AnyContains('>') then
539545
begin
540546
ChooseOption.Select('Cancel');

0 commit comments

Comments
 (0)