mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#CSAR
* Added use of custom callsigns * Added cargo weight for rescued pilots * Improved o'clock calculation #CTLD * Docu additions
This commit is contained in:
@@ -1626,7 +1626,7 @@ end
|
|||||||
-- @param #string text Original text.
|
-- @param #string text Original text.
|
||||||
-- @return #string Spoken text.
|
-- @return #string Spoken text.
|
||||||
function PLAYERTASKCONTROLLER:_GetTextForSpeech(text)
|
function PLAYERTASKCONTROLLER:_GetTextForSpeech(text)
|
||||||
|
self:T(self.lid.."_GetTextForSpeech")
|
||||||
-- Space out numbers.
|
-- Space out numbers.
|
||||||
text=string.gsub(text,"%d","%1 ")
|
text=string.gsub(text,"%d","%1 ")
|
||||||
-- get rid of leading or trailing spaces
|
-- get rid of leading or trailing spaces
|
||||||
@@ -2780,7 +2780,7 @@ function PLAYERTASKCONTROLLER:_ActiveTaskInfo(Group, Client, Task)
|
|||||||
|
|
||||||
-- Task Report
|
-- Task Report
|
||||||
text = text .. clienttxt
|
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)
|
local brieftxt = self.gettext:GetEntry("BRIEFING",self.locale)
|
||||||
text = text .. string.format("\n%s: ",brieftxt)..task:GetFreetext()
|
text = text .. string.format("\n%s: ",brieftxt)..task:GetFreetext()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user