Refactor marker management to use child count for occupancy checks; update road management to handle Marker2D types
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user