#Ops - various fixes

This commit is contained in:
Applevangelist
2022-10-18 16:55:54 +02:00
parent 2bf5cc2369
commit 7e12a48a8a
2 changed files with 34 additions and 12 deletions

View File

@@ -1626,7 +1626,7 @@ end
-- @param #string text Original text.
-- @return #string Spoken text.
function PLAYERTASKCONTROLLER:_GetTextForSpeech(text)
self:T(self.lid.."_GetTextForSpeech")
-- Space out numbers.
text=string.gsub(text,"%d","%1 ")
-- get rid of leading or trailing spaces
@@ -2780,7 +2780,7 @@ function PLAYERTASKCONTROLLER:_ActiveTaskInfo(Group, Client, Task)
-- Task Report
text = text .. clienttxt
if task:HasFreetext() then
if task:HasFreetext() and not ( task.Type == AUFTRAG.Type.CTLD or task.Type == AUFTRAG.Type.CSAR) then
local brieftxt = self.gettext:GetEntry("BRIEFING",self.locale)
text = text .. string.format("\n%s: ",brieftxt)..task:GetFreetext()
end