Lua: diagonals for selection floodfill

This commit is contained in:
Pasi Kallinen
2021-08-15 13:50:28 +03:00
parent 98ec66e00c
commit f43bfc3f71
3 changed files with 28 additions and 8 deletions

View File

@@ -809,11 +809,13 @@ Example:
Select locations by starting floodfill at (x,y),
matching the same map terrain in cardinal directions.
If the optional third parameter is true, also checks diagonals.
Example:
local s = selection.floodfill(sel, x, y);
local s = selection.floodfill(x,y);
local s = selection.floodfill(x,y, true);
=== get