mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Smaller fixes
This commit is contained in:
parent
81fd5cb605
commit
6d94a0c776
@ -744,7 +744,7 @@ do -- SETTINGS
|
|||||||
|
|
||||||
self.PlayerMenu = PlayerMenu
|
self.PlayerMenu = PlayerMenu
|
||||||
|
|
||||||
self:I( string.format( "Setting menu for player %s", tostring( PlayerName ) ) )
|
self:T( string.format( "Setting menu for player %s", tostring( PlayerName ) ) )
|
||||||
|
|
||||||
local submenu = MENU_GROUP:New( PlayerGroup, "LL Accuracy", PlayerMenu )
|
local submenu = MENU_GROUP:New( PlayerGroup, "LL Accuracy", PlayerMenu )
|
||||||
MENU_GROUP_COMMAND:New( PlayerGroup, "LL 0 Decimals", submenu, self.MenuGroupLL_DDM_AccuracySystem, self, PlayerUnit, PlayerGroup, PlayerName, 0 )
|
MENU_GROUP_COMMAND:New( PlayerGroup, "LL 0 Decimals", submenu, self.MenuGroupLL_DDM_AccuracySystem, self, PlayerUnit, PlayerGroup, PlayerName, 0 )
|
||||||
@ -989,7 +989,7 @@ do -- SETTINGS
|
|||||||
do
|
do
|
||||||
--- @param #SETTINGS self
|
--- @param #SETTINGS self
|
||||||
function SETTINGS:MenuGroupA2GSystem( PlayerUnit, PlayerGroup, PlayerName, A2GSystem )
|
function SETTINGS:MenuGroupA2GSystem( PlayerUnit, PlayerGroup, PlayerName, A2GSystem )
|
||||||
BASE:E( { self, PlayerUnit:GetName(), A2GSystem } )
|
--BASE:E( {PlayerUnit:GetName(), A2GSystem } )
|
||||||
self.A2GSystem = A2GSystem
|
self.A2GSystem = A2GSystem
|
||||||
MESSAGE:New( string.format( "Settings: A2G format set to %s for player %s.", A2GSystem, PlayerName ), 5 ):ToGroup( PlayerGroup )
|
MESSAGE:New( string.format( "Settings: A2G format set to %s for player %s.", A2GSystem, PlayerName ), 5 ):ToGroup( PlayerGroup )
|
||||||
if _SETTINGS.MenuStatic == false then
|
if _SETTINGS.MenuStatic == false then
|
||||||
|
|||||||
@ -3483,7 +3483,7 @@ function RAT:Status(message, forID)
|
|||||||
-- Get group.
|
-- Get group.
|
||||||
local group=ratcraft.group --Wrapper.Group#GROUP
|
local group=ratcraft.group --Wrapper.Group#GROUP
|
||||||
|
|
||||||
if group and group:IsAlive() then
|
if group and group:IsAlive() and (group:GetCoordinate() or group:GetVec3()) then
|
||||||
nalive=nalive+1
|
nalive=nalive+1
|
||||||
|
|
||||||
-- Gather some information.
|
-- Gather some information.
|
||||||
|
|||||||
@ -406,8 +406,8 @@ function UTILS._OneLineSerialize(tbl)
|
|||||||
elseif type(val) == 'nil' then -- won't ever happen, right?
|
elseif type(val) == 'nil' then -- won't ever happen, right?
|
||||||
tbl_str[#tbl_str + 1] = 'nil, '
|
tbl_str[#tbl_str + 1] = 'nil, '
|
||||||
elseif type(val) == 'table' then
|
elseif type(val) == 'table' then
|
||||||
tbl_str[#tbl_str + 1] = UTILS._OneLineSerialize(val)
|
--tbl_str[#tbl_str + 1] = UTILS._OneLineSerialize(val)
|
||||||
tbl_str[#tbl_str + 1] = ', ' --I think this is right, I just added it
|
--tbl_str[#tbl_str + 1] = ', ' --I think this is right, I just added it
|
||||||
else
|
else
|
||||||
--log:warn('Unable to serialize value type $1 at index $2', mist.utils.basicSerialize(type(val)), tostring(ind))
|
--log:warn('Unable to serialize value type $1 at index $2', mist.utils.basicSerialize(type(val)), tostring(ind))
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user