hide marker when GUIPlayer is null

This commit is contained in:
Beu 2023-09-25 21:17:04 +02:00
parent 48421ed7cb
commit d84b22f0ef

View File

@ -647,18 +647,24 @@ main() {
declare Integer I;
declare Boolean OwnerIsPassed;
foreach (Name => Altitude in Net_ClimbTheMap_AltitudePerName) {
if (!LiveMarkers.existskey(I)) break;
if (OwnerName == Name) {
UpdateMarker(Frame_Marker_Owner, Net_ClimbTheMap_AltitudeOfWaypoints, AnimationDuration, C_Type_Owner, Name, Altitude);
OwnerIsPassed = True;
} else {
UpdateMarker(LiveMarkers[I], Net_ClimbTheMap_AltitudeOfWaypoints, AnimationDuration, C_Type_Live, Name, Altitude);
I += 1;
}
}
}
if (!OwnerIsPassed) {
Frame_Marker_Owner.Visible = False;
}
while (LiveMarkers.existskey(I) && LiveMarkers[I].Visible) {
LiveMarkers[I].Visible = False;