|
|
@ -186,9 +186,9 @@ function coords(arg, arg_name, skip_validation)
|
|
|
|
return cursor
|
|
|
|
return cursor
|
|
|
|
end
|
|
|
|
end
|
|
|
|
local numbers = numberList(arg, arg_name, 3)
|
|
|
|
local numbers = numberList(arg, arg_name, 3)
|
|
|
|
local pos = xyz2pos(check_nonnegative_int(numbers[1]),
|
|
|
|
local pos = xyz2pos(nonnegativeInt(numbers[1]),
|
|
|
|
check_nonnegative_int(numbers[2]),
|
|
|
|
nonnegativeInt(numbers[2]),
|
|
|
|
check_nonnegative_int(numbers[3]))
|
|
|
|
nonnegativeInt(numbers[3]))
|
|
|
|
if not skip_validation and not dfhack.maps.isValidTilePos(pos) then
|
|
|
|
if not skip_validation and not dfhack.maps.isValidTilePos(pos) then
|
|
|
|
arg_error(arg_name,
|
|
|
|
arg_error(arg_name,
|
|
|
|
'specified coordinates not on current map: "%s"', arg)
|
|
|
|
'specified coordinates not on current map: "%s"', arg)
|
|
|
|