Fixed Typo

Fixed typo generating error in mist.getRandomPointInZone
This commit is contained in:
mrSkortch 2021-04-09 14:14:11 -06:00
parent fdcbac0ac5
commit 1c9e14add3
2 changed files with 7643 additions and 3 deletions

View File

@ -35,7 +35,7 @@ mist = {}
-- don't change these
mist.majorVersion = 4
mist.minorVersion = 5
mist.build = 97
mist.build = 98
-- forward declaration of log shorthand
local log
@ -5183,7 +5183,13 @@ unitTableDef = table or nil
end
end
--[[
function mist.flagFunc.weapon_in_zones(vars)
-- borrow from suchoi surprise. While running enabled event handler that checks for weapons in zone.
-- Choice is weapon category or weapon strings.
end
]]
--- Sets a flag if unit(s) is/are inside a moving zone.
-- @todo document
function mist.flagFunc.units_in_moving_zones(vars)
@ -7127,7 +7133,7 @@ do -- group tasks scope
function mist.getRandomPointInZone(zoneName, innerRadius, maxA, minA)
if type(zoneName) == 'string' then
local zone = mist.DBs.zoneByName[zoneName]
local zone = mist.DBs.zonesByName[zoneName]
if zone.type and zone.type == 2 then
return mist.getRandomPointInPoly(zone.vertices)
else

7634
mist_4_5_98.lua Normal file

File diff suppressed because it is too large Load Diff