Skip to content

Commit

Permalink
Fixed the switching maps issue; Fixed a bug in SPS_BlindWalk where it…
Browse files Browse the repository at this point in the history
… would walk even if the player's location couldn't be found
  • Loading branch information
Cohen Adair committed Feb 3, 2013
1 parent 4bb5f0c commit 0b4c56b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sps.simba
Expand Up @@ -522,6 +522,9 @@ begin

M := SPS_GetMyPos();

if (M.X = -1) then
Continue;

if (Length(ctrlPoints) = 0) then
ctrlPoints := TPABetweenPoints(Point(M.X, M.Y), Point(P.X, P.Y), 20 + Random(15), 10);

Expand All @@ -542,6 +545,9 @@ var
begin
t := getSystemTime;

setLength(SPS_AreaMaps, 0);
setLength(SPS_Areas, 0);

SPS_MultiMouse := true;
SPS_Accuracy := 4;

Expand Down

0 comments on commit 0b4c56b

Please sign in to comment.