Skip to content

Commit 6a401c2

Browse files
author
Cohen Adair
committed
Added if (not loggedIn) calls in SPS_WalkPath and SPS_BlindWalk
1 parent 55782f4 commit 6a401c2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

sps.simba

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,11 @@ begin
458458

459459
while (not Result) and (GetSystemTime < T) and (Fails < 5) do
460460
begin
461+
if (not LoggedIn()) then
462+
Exit;
463+
461464
RunEnergy(20);
462-
P := SPS_GetMyPos(); // for Lape, remove this call and pass player's pos as a parameter
465+
P := SPS_GetMyPos();
463466

464467
for I := H downto 0 do
465468
begin
@@ -482,7 +485,7 @@ begin
482485
Mouse(MM.X, MM.Y, 5, 5, mouse_Left);
483486

484487
MMF := MM;
485-
FFlag(Integer(I <> H) * 15);
488+
FFlag(5 + (Integer(I <> H) * 15));
486489

487490
T := getSystemTime + 20000 + Random(1000);
488491
Break;
@@ -501,6 +504,9 @@ var
501504
ctrlPoints: TPointArray;
502505
begin
503506
repeat
507+
if (not LoggedIn()) then
508+
Exit;
509+
504510
M := SPS_GetMyPos();
505511

506512
if (Length(ctrlPoints) = 0) then

0 commit comments

Comments
 (0)