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,12 +647,14 @@ 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);
@ -660,6 +662,10 @@ main() {
}
}
if (!OwnerIsPassed) {
Frame_Marker_Owner.Visible = False;
}
while (LiveMarkers.existskey(I) && LiveMarkers[I].Visible) {
LiveMarkers[I].Visible = False;
I += 1;