mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Fix for shadowze on the cargo templates not correctly destroyed after being respawned. The original groups should be cleaned from the database.
This commit is contained in:
parent
703dac8251
commit
a0e77c04e0
@ -69,7 +69,7 @@ do -- CARGO_GROUP
|
|||||||
local WeightGroup = 0
|
local WeightGroup = 0
|
||||||
local VolumeGroup = 0
|
local VolumeGroup = 0
|
||||||
|
|
||||||
self.CargoGroup:Destroy()
|
self.CargoGroup:Destroy( true ) -- generate the crash events, so that the database gets cleaned, and the linked sets get properly cleaned.
|
||||||
|
|
||||||
local GroupName = CargoGroup:GetName()
|
local GroupName = CargoGroup:GetName()
|
||||||
self.CargoName = Name
|
self.CargoName = Name
|
||||||
|
|||||||
@ -297,7 +297,7 @@ do -- CARGO_UNIT
|
|||||||
if self:IsNear( CargoCarrier:GetPointVec2(), NearRadius ) then
|
if self:IsNear( CargoCarrier:GetPointVec2(), NearRadius ) then
|
||||||
self:__Load( 1, CargoCarrier, ... )
|
self:__Load( 1, CargoCarrier, ... )
|
||||||
else
|
else
|
||||||
self:__Boarding( -5, CargoCarrier, NearRadius, ... )
|
self:__Boarding( -1, CargoCarrier, NearRadius, ... )
|
||||||
self.RunCount = self.RunCount + 1
|
self.RunCount = self.RunCount + 1
|
||||||
if self.RunCount >= 40 then
|
if self.RunCount >= 40 then
|
||||||
self.RunCount = 0
|
self.RunCount = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user