mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge branch 'tt/auftrag-UpdateMarker-null-ref-check' into tt/misc-bug-fixes
This commit is contained in:
commit
a733b17840
@ -5776,10 +5776,12 @@ function AUFTRAG:UpdateMarker()
|
||||
-- Get target coordinates. Can be nil!
|
||||
local targetcoord=self:GetTargetCoordinate()
|
||||
|
||||
if self.markerCoaliton and self.markerCoaliton>=0 then
|
||||
self.marker=MARKER:New(targetcoord, text):ReadOnly():ToCoalition(self.markerCoaliton)
|
||||
else
|
||||
self.marker=MARKER:New(targetcoord, text):ReadOnly():ToAll()
|
||||
if targetcoord then
|
||||
if self.markerCoaliton and self.markerCoaliton>=0 then
|
||||
self.marker=MARKER:New(targetcoord, text):ReadOnly():ToCoalition(self.markerCoaliton)
|
||||
else
|
||||
self.marker=MARKER:New(targetcoord, text):ReadOnly():ToAll()
|
||||
end
|
||||
end
|
||||
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user