From ebb947f27bfdf6b8b6e7c1183ed0a384cccc75a9 Mon Sep 17 00:00:00 2001 From: Theodore Kruczek Date: Fri, 16 Aug 2024 07:52:42 -0400 Subject: [PATCH] fix: :bug: dont draw FOV lines to missiles --- src/singletons/draw-manager/line-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/singletons/draw-manager/line-manager.ts b/src/singletons/draw-manager/line-manager.ts index 29d8a43c8..b6068c1be 100644 --- a/src/singletons/draw-manager/line-manager.ts +++ b/src/singletons/draw-manager/line-manager.ts @@ -136,7 +136,7 @@ export class LineManager { } createSensorToSatFovAndSelectedOnly(sensor: DetailedSensor | null, sat: DetailedSatellite | null, color?: vec4): void { - if (!sensor || !sat) { + if (!sensor || !sat || sat instanceof MissileObject) { return; }