From 5f0fb1616040e25b46bf254f69bdb07d5188d297 Mon Sep 17 00:00:00 2001 From: Rich Dunne Date: Sun, 4 Oct 2020 14:49:06 -0600 Subject: [PATCH] Removed dead code --- SceneManager/Object Classes/CollectedVehicle.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/SceneManager/Object Classes/CollectedVehicle.cs b/SceneManager/Object Classes/CollectedVehicle.cs index 497bc1a..ac41a58 100644 --- a/SceneManager/Object Classes/CollectedVehicle.cs +++ b/SceneManager/Object Classes/CollectedVehicle.cs @@ -73,17 +73,7 @@ namespace SceneManager GameFiber.StartNew(() => { // check if the vehicle is near any of the path's collector waypoints - //var nearestCollectorWaypoint = Path.Waypoints.Where(wp => wp.IsCollector && Vehicle.DistanceTo2D(wp.Position) <= wp.CollectorRadius * 2).FirstOrDefault(); var nearestCollectorWaypoint = Path.Waypoints.Where(wp => wp.IsCollector).OrderBy(wp => Vehicle.DistanceTo2D(wp.Position)).FirstOrDefault(); - //if(nearestCollectorWaypoint != null && Vehicle.FrontPosition.DistanceTo2D(nearestCollectorWaypoint.Position) <= 5f) - //{ - // while (nearestCollectorWaypoint != null && Vehicle && Driver && Vehicle.FrontPosition.DistanceTo2D(nearestCollectorWaypoint.Position) <= 5f) - // { - // Game.LogTrivial($"{Vehicle.Model.Name} is within 5f of nearest collector to be fully dismissed."); - // GameFiber.Yield(); - // } - //} - //else if if(nearestCollectorWaypoint != null) { while (nearestCollectorWaypoint != null && Vehicle && Driver && Vehicle.FrontPosition.DistanceTo2D(nearestCollectorWaypoint.Position) <= nearestCollectorWaypoint.CollectorRadius * 2)