Refactor marker management to use child count for occupancy checks; update road management to handle Marker2D types

This commit is contained in:
2025-08-23 15:48:08 +02:00
parent 608bcc552d
commit cd715a24cb
3 changed files with 10 additions and 28 deletions

View File

@@ -120,9 +120,9 @@ public partial class PopulationVisualizer : Node
}
else
{
if (marker.IsOccupied)
if (marker.GetChildCount() > 0)
{
marker.RemoveFollower();
marker.GetChild(0).QueueFree();
needsChange = true;
}
}