mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Syntax
This commit is contained in:
parent
400ae46e03
commit
dca57c97de
@ -224,7 +224,7 @@ UTILS = {
|
|||||||
-- @return #boolean
|
-- @return #boolean
|
||||||
UTILS.IsInstanceOf = function( object, className )
|
UTILS.IsInstanceOf = function( object, className )
|
||||||
-- Is className NOT a string ?
|
-- Is className NOT a string ?
|
||||||
if not type( className ) == 'string' then
|
if type( className ) ~= 'string' then
|
||||||
|
|
||||||
-- Is className a Moose class ?
|
-- Is className a Moose class ?
|
||||||
if type( className ) == 'table' and className.IsInstanceOf ~= nil then
|
if type( className ) == 'table' and className.IsInstanceOf ~= nil then
|
||||||
|
|||||||
@ -2167,7 +2167,7 @@ do -- Patrol methods
|
|||||||
-- @return #CONTROLLABLE
|
-- @return #CONTROLLABLE
|
||||||
function CONTROLLABLE:PatrolZones( ZoneList, Speed, Formation, DelayMin, DelayMax )
|
function CONTROLLABLE:PatrolZones( ZoneList, Speed, Formation, DelayMin, DelayMax )
|
||||||
|
|
||||||
if not type( ZoneList ) == "table" then
|
if type( ZoneList ) ~= "table" then
|
||||||
ZoneList = { ZoneList }
|
ZoneList = { ZoneList }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user