mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Small fixes
This commit is contained in:
parent
ae08c87822
commit
a798f2d61c
@ -8355,7 +8355,7 @@ do -- SET_SCENERY
|
|||||||
-- @param #SET_SCENERY self
|
-- @param #SET_SCENERY self
|
||||||
-- @return Core.Point#COORDINATE The center coordinate of all the objects in the set.
|
-- @return Core.Point#COORDINATE The center coordinate of all the objects in the set.
|
||||||
function SET_SCENERY:GetCoordinate()
|
function SET_SCENERY:GetCoordinate()
|
||||||
|
--[[
|
||||||
local Coordinate = COORDINATE:New({0,0,0})
|
local Coordinate = COORDINATE:New({0,0,0})
|
||||||
|
|
||||||
local Item = self:GetRandomSurely()
|
local Item = self:GetRandomSurely()
|
||||||
@ -8363,6 +8363,9 @@ do -- SET_SCENERY
|
|||||||
if Item then
|
if Item then
|
||||||
Coordinate:GetCoordinate()
|
Coordinate:GetCoordinate()
|
||||||
end
|
end
|
||||||
|
--]]
|
||||||
|
|
||||||
|
local Coordinate = self:GetFirst():GetCoordinate()
|
||||||
|
|
||||||
local x1 = Coordinate.x
|
local x1 = Coordinate.x
|
||||||
local x2 = Coordinate.x
|
local x2 = Coordinate.x
|
||||||
|
|||||||
@ -458,7 +458,7 @@ function DYNAMICCARGO:_UpdatePosition()
|
|||||||
self:T(self.lid.." AGL: "..agl or -1)
|
self:T(self.lid.." AGL: "..agl or -1)
|
||||||
local isunloaded = true
|
local isunloaded = true
|
||||||
local client
|
local client
|
||||||
local playername
|
local playername = self.Owner
|
||||||
if count > 0 and (agl > 0 or self.testing) then
|
if count > 0 and (agl > 0 or self.testing) then
|
||||||
self:T(self.lid.." Possible alive helos: "..count or -1)
|
self:T(self.lid.." Possible alive helos: "..count or -1)
|
||||||
if agl ~= 0 or self.testing then
|
if agl ~= 0 or self.testing then
|
||||||
@ -470,6 +470,11 @@ function DYNAMICCARGO:_UpdatePosition()
|
|||||||
self.Owner = playername
|
self.Owner = playername
|
||||||
_DATABASE:CreateEventDynamicCargoUnloaded(self)
|
_DATABASE:CreateEventDynamicCargoUnloaded(self)
|
||||||
end
|
end
|
||||||
|
elseif count > 0 and agl == 0 then
|
||||||
|
self:T(self.lid.." moved! LOADED -> UNLOADED by "..tostring(playername))
|
||||||
|
self.CargoState = DYNAMICCARGO.State.UNLOADED
|
||||||
|
self.Owner = playername
|
||||||
|
_DATABASE:CreateEventDynamicCargoUnloaded(self)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
self.LastPosition = pos
|
self.LastPosition = pos
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user