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
1f1ab1664c
commit
a847d890ba
@ -20,7 +20,7 @@
|
||||
--
|
||||
-- @module Core.ClientMenu
|
||||
-- @image Core_Menu.JPG
|
||||
-- last change: Apr 2024
|
||||
-- last change: May 2024
|
||||
|
||||
-- TODO
|
||||
----------------------------------------------------------------------------------------------------------------
|
||||
@ -691,7 +691,7 @@ function CLIENTMENUMANAGER:Propagate(Client)
|
||||
local client = _client -- Wrapper.Client#CLIENT
|
||||
if client and client:IsAlive() then
|
||||
local playerunit = client:GetName()
|
||||
local playergroup = client:GetGroup()
|
||||
--local playergroup = client:GetGroup()
|
||||
local playername = client:GetPlayerName() or "none"
|
||||
if not knownunits[playerunit] then
|
||||
knownunits[playerunit] = true
|
||||
|
||||
@ -2123,10 +2123,12 @@ function PLAYERTASKCONTROLLER:_GetPlayerName(Client)
|
||||
local ttsplayername = nil
|
||||
if not self.customcallsigns[playername] then
|
||||
local playergroup = Client:GetGroup()
|
||||
if playergroup ~= nil then
|
||||
ttsplayername = playergroup:GetCustomCallSign(self.ShortCallsign,self.Keepnumber,self.CallsignTranslations)
|
||||
local newplayername = self:_GetTextForSpeech(ttsplayername)
|
||||
self.customcallsigns[playername] = newplayername
|
||||
ttsplayername = newplayername
|
||||
end
|
||||
else
|
||||
ttsplayername = self.customcallsigns[playername]
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user