diff --git a/Moose Development/Moose/Core/Spawn.lua b/Moose Development/Moose/Core/Spawn.lua index a6651a7c1..c34c8ccbd 100644 --- a/Moose Development/Moose/Core/Spawn.lua +++ b/Moose Development/Moose/Core/Spawn.lua @@ -724,7 +724,7 @@ end -- @param #number Country Country id as number or enumerator: -- -- * @{DCS#country.id.RUSSIA} --- * @{DCS#county.id.USA} +-- * @{DCS#country.id.USA} -- -- @return #SPAWN self function SPAWN:InitCountry( Country ) diff --git a/Moose Development/Moose/Core/Zone.lua b/Moose Development/Moose/Core/Zone.lua index 3317df260..db176e783 100644 --- a/Moose Development/Moose/Core/Zone.lua +++ b/Moose Development/Moose/Core/Zone.lua @@ -899,7 +899,8 @@ function ZONE_RADIUS:BoundZone( Points, CountryID, UnBound ) local Point = {} local Vec2 = self:GetVec2() - + local countryID = CountryID or country.id.USA + Points = Points and Points or 360 local Angle @@ -910,7 +911,7 @@ function ZONE_RADIUS:BoundZone( Points, CountryID, UnBound ) Point.x = Vec2.x + math.cos( Radial ) * self:GetRadius() Point.y = Vec2.y + math.sin( Radial ) * self:GetRadius() - local CountryName = _DATABASE.COUNTRY_NAME[CountryID] + local CountryName = _DATABASE.COUNTRY_NAME[countryID] local Tire = { ["country"] = CountryName, @@ -925,7 +926,7 @@ function ZONE_RADIUS:BoundZone( Points, CountryID, UnBound ) ["heading"] = 0, } -- end of ["group"] - local Group = coalition.addStaticObject( CountryID, Tire ) + local Group = coalition.addStaticObject( countryID, Tire ) if UnBound and UnBound == true then Group:destroy() end