Skip to content

Commit

Permalink
Fix random rotation (#214)
Browse files Browse the repository at this point in the history
- Fixed: The random rotation of FoA guard/scout movement was out of range.
  • Loading branch information
alexbatalov authored Jan 16, 2024
1 parent 78beed5 commit 4517228
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ end

procedure critter_p_proc begin
if (map_var(1) == 1) then begin
self_walk_to_tile(tile_num_in_direction(dude_tile, random(0, 6), random(3, 7)));
self_walk_to_tile(tile_num_in_direction(dude_tile, random(0, 5), random(3, 7)));
end
else begin
if ((map_var(1) == 2) and self_can_see_dude) then begin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ end

procedure critter_p_proc begin
if (map_var(1) == 1) then begin
self_walk_to_tile(tile_num_in_direction(dude_tile, random(0, 6), random(3, 7)));
self_walk_to_tile(tile_num_in_direction(dude_tile, random(0, 5), random(3, 7)));
end
else begin
if ((map_var(1) == 2) and self_can_see_dude) then begin
Expand Down

0 comments on commit 4517228

Please sign in to comment.