Warehouse

little updates
static countryid
This commit is contained in:
funkyfranky 2018-09-17 14:04:30 +02:00
parent 85640c5884
commit f4f942d8d4
2 changed files with 3 additions and 5 deletions

View File

@ -200,10 +200,8 @@ function SPAWNSTATIC:ReSpawn(countryid)
if StaticTemplate then
local CountryID = countryid or self.CountryID
local CountryName = _DATABASE.COUNTRY_NAME[CountryID]
--local CountryID = countryid or (self.CountryID or CountryID)
StaticTemplate.units = nil
StaticTemplate.route = nil
StaticTemplate.groupId = nil

View File

@ -197,9 +197,9 @@ end
-- @param DCS#country.id countryid The country ID used for spawning the new static.
function STATIC:ReSpawn(countryid)
local SpawnStatic = SPAWNSTATIC:NewFromStatic( self.StaticName )
local SpawnStatic = SPAWNSTATIC:NewFromStatic( self.StaticName, countryid )
SpawnStatic:ReSpawn(countryid)
SpawnStatic:ReSpawn()
end