From 5e5c0ea6533bab03702abc705907d2eecf22a561 Mon Sep 17 00:00:00 2001 From: Nelsonh Date: Thu, 21 Nov 2024 01:05:00 +0000 Subject: [PATCH] add eit option --- objects/obj_p_fleet/Draw_0.gml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/objects/obj_p_fleet/Draw_0.gml b/objects/obj_p_fleet/Draw_0.gml index 920d971dc4..0d4f1ebc06 100644 --- a/objects/obj_p_fleet/Draw_0.gml +++ b/objects/obj_p_fleet/Draw_0.gml @@ -1,4 +1,6 @@ +if (!instance_exists(obj_star)) then exit; + if (instance_exists(orbiting)) and (obj_controller.is_test_map=true){ draw_set_color(c_red); draw_line_width(x,y,orbiting.x,orbiting.y,1); @@ -9,6 +11,7 @@ if (x<0) or (x>room_width) or (y<0) or (y>room_height) then exit; if (image_alpha=0) then exit; var coords = [0,0]; + var near_star = instance_nearest(x,y, obj_star); if (x==near_star.x && y==near_star.y){ var coords = [24,-24];