mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
a48e09b434
@ -724,7 +724,7 @@ end
|
|||||||
-- @param #number Country Country id as number or enumerator:
|
-- @param #number Country Country id as number or enumerator:
|
||||||
--
|
--
|
||||||
-- * @{DCS#country.id.RUSSIA}
|
-- * @{DCS#country.id.RUSSIA}
|
||||||
-- * @{DCS#county.id.USA}
|
-- * @{DCS#country.id.USA}
|
||||||
--
|
--
|
||||||
-- @return #SPAWN self
|
-- @return #SPAWN self
|
||||||
function SPAWN:InitCountry( Country )
|
function SPAWN:InitCountry( Country )
|
||||||
|
|||||||
@ -899,6 +899,7 @@ function ZONE_RADIUS:BoundZone( Points, CountryID, UnBound )
|
|||||||
|
|
||||||
local Point = {}
|
local Point = {}
|
||||||
local Vec2 = self:GetVec2()
|
local Vec2 = self:GetVec2()
|
||||||
|
local countryID = CountryID or country.id.USA
|
||||||
|
|
||||||
Points = Points and Points or 360
|
Points = Points and Points or 360
|
||||||
|
|
||||||
@ -910,7 +911,7 @@ function ZONE_RADIUS:BoundZone( Points, CountryID, UnBound )
|
|||||||
Point.x = Vec2.x + math.cos( Radial ) * self:GetRadius()
|
Point.x = Vec2.x + math.cos( Radial ) * self:GetRadius()
|
||||||
Point.y = Vec2.y + math.sin( 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 = {
|
local Tire = {
|
||||||
["country"] = CountryName,
|
["country"] = CountryName,
|
||||||
@ -925,7 +926,7 @@ function ZONE_RADIUS:BoundZone( Points, CountryID, UnBound )
|
|||||||
["heading"] = 0,
|
["heading"] = 0,
|
||||||
} -- end of ["group"]
|
} -- end of ["group"]
|
||||||
|
|
||||||
local Group = coalition.addStaticObject( CountryID, Tire )
|
local Group = coalition.addStaticObject( countryID, Tire )
|
||||||
if UnBound and UnBound == true then
|
if UnBound and UnBound == true then
|
||||||
Group:destroy()
|
Group:destroy()
|
||||||
end
|
end
|
||||||
|
|||||||
@ -302,7 +302,7 @@ AIRBASE.Normandy = {
|
|||||||
["Fecamp_Benouville"] = "Fecamp-Benouville",
|
["Fecamp_Benouville"] = "Fecamp-Benouville",
|
||||||
["Farnborough"] = "Farnborough",
|
["Farnborough"] = "Farnborough",
|
||||||
["Friston"] = "Friston",
|
["Friston"] = "Friston",
|
||||||
["Deanland "] = "Deanland ",
|
["Deanland"] = "Deanland",
|
||||||
["Triqueville"] = "Triqueville",
|
["Triqueville"] = "Triqueville",
|
||||||
["Poix"] = "Poix",
|
["Poix"] = "Poix",
|
||||||
["Orly"] = "Orly",
|
["Orly"] = "Orly",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user