#PLAYERTASKCONTROLLER

* No spaces in callsign numbers on pilot list in task info screen
This commit is contained in:
Applevangelist 2022-10-19 13:05:19 +02:00
parent 9809f08954
commit 78c209a96f

View File

@ -567,7 +567,7 @@ function PLAYERTASK:IlluminateTarget(Power,Height)
if self.Target then
local coordinate = self.Target:GetAverageCoordinate()
if coordinate then
local bcoord = COORDINATE:NewFromVec2( coordinate:GetVec2(), Height )
local bcoord = COORDINATE:NewFromVec2( coordinate:GetVec2(), Height )
bcoord:IlluminationBomb(Power)
end
end
@ -2770,7 +2770,8 @@ function PLAYERTASKCONTROLLER:_ActiveTaskInfo(Group, Client, Task)
if clientcount > 0 then
for _,_name in pairs(clientlist) do
if self.customcallsigns[_name] then
_name = self.customcallsigns[_name]
_name = self.customcallsigns[_name]
_name = string.gsub(_name, "(%d) ","%1")
end
clienttxt = clienttxt .. _name .. ", "
end