1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 15:40:29 +01:00

Set default state of EnableWaypointMarker to true, fixed DrawWaypointMarker not working correctly

This commit is contained in:
Rich Dunne 2020-09-14 14:45:38 -06:00
parent 514211dd96
commit 47a5ea5879

View file

@ -17,10 +17,10 @@ namespace SceneManager
internal Blip CollectorRadiusBlip { get; set; } internal Blip CollectorRadiusBlip { get; set; }
internal float SpeedZoneRadius { get; set; } internal float SpeedZoneRadius { get; set; }
internal uint SpeedZone { get; set; } internal uint SpeedZone { get; set; }
internal bool EnableWaypointMarker { get; set; } internal bool EnableWaypointMarker { get; set; } = true;
internal bool EnableEditMarker { get; set; } internal bool EnableEditMarker { get; set; }
internal Waypoint(Path path, int waypointNum, Vector3 waypointPos, float speed, VehicleDrivingFlags drivingFlag, Blip waypointBlip, bool collector = false, float collectorRadius = 1, float speedZoneRadius = 0) internal Waypoint(Path path, int waypointNum, Vector3 waypointPos, float speed, VehicleDrivingFlags drivingFlag, Blip waypointBlip, bool collector = false, float collectorRadius = 0, float speedZoneRadius = 0)
{ {
Path = path; Path = path;
Number = waypointNum; Number = waypointNum;
@ -146,7 +146,7 @@ namespace SceneManager
internal void DrawWaypointMarker() internal void DrawWaypointMarker()
{ {
// This is called once when the waypoint is created // This is called once when the waypoint is created
GameFiber.StartNew((System.Threading.ThreadStart)(() => GameFiber.StartNew(() =>
{ {
while (SettingsMenu.threeDWaypoints.Checked && EnableWaypointMarker && Path.Waypoints.Contains(this)) while (SettingsMenu.threeDWaypoints.Checked && EnableWaypointMarker && Path.Waypoints.Contains(this))
{ {
@ -213,7 +213,7 @@ namespace SceneManager
GameFiber.Yield(); GameFiber.Yield();
} }
})); });
} }
internal void EnableBlip() internal void EnableBlip()