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
# Conflicts: # Moose Development/Moose/Wrapper/Positionable.lua # Moose Development/Moose/Wrapper/Unit.lua
This commit is contained in:
@@ -703,15 +703,15 @@ function UNIT:GetAmmo()
|
||||
self:F2( self.UnitName )
|
||||
local DCSUnit = self:GetDCSObject()
|
||||
if DCSUnit then
|
||||
-- local status, unitammo = pcall(
|
||||
-- function()
|
||||
-- local UnitAmmo = DCSUnit:getAmmo()
|
||||
-- return UnitAmmo
|
||||
-- end
|
||||
-- )
|
||||
-- if status then
|
||||
-- return unitammo
|
||||
-- end
|
||||
--local status, unitammo = pcall(
|
||||
-- function()
|
||||
-- local UnitAmmo = DCSUnit:getAmmo()
|
||||
-- return UnitAmmo
|
||||
--end
|
||||
--)
|
||||
--if status then
|
||||
--return unitammo
|
||||
--end
|
||||
local UnitAmmo = DCSUnit:getAmmo()
|
||||
return UnitAmmo
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user