mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
xx
This commit is contained in:
parent
733251bf06
commit
cb4a12c5ba
@ -472,7 +472,11 @@ end
|
|||||||
function SPAWNSTATIC:_SpawnStatic(Template, CountryID)
|
function SPAWNSTATIC:_SpawnStatic(Template, CountryID)
|
||||||
|
|
||||||
Template=Template or {}
|
Template=Template or {}
|
||||||
|
|
||||||
|
if not Template.alt then
|
||||||
|
Template.alt = land.getHeight( {x = Template.x, y = Template.y} )
|
||||||
|
end
|
||||||
|
|
||||||
local CountryID=CountryID or self.CountryID
|
local CountryID=CountryID or self.CountryID
|
||||||
|
|
||||||
if self.InitStaticType then
|
if self.InitStaticType then
|
||||||
@ -486,7 +490,7 @@ function SPAWNSTATIC:_SpawnStatic(Template, CountryID)
|
|||||||
if self.InitStaticCoordinate then
|
if self.InitStaticCoordinate then
|
||||||
Template.x = self.InitStaticCoordinate.x
|
Template.x = self.InitStaticCoordinate.x
|
||||||
Template.y = self.InitStaticCoordinate.z
|
Template.y = self.InitStaticCoordinate.z
|
||||||
Template.alt = self.InitStaticCoordinate.y
|
Template.alt = self.InitStaticCoordinate.y or land.getHeight( {x = Template.x, y = Template.z} )
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.InitStaticHeading then
|
if self.InitStaticHeading then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user