From 4adfc00800685afeb5447d113752a2bca91aa588 Mon Sep 17 00:00:00 2001 From: Leshana Date: Thu, 30 Apr 2020 16:51:22 -0400 Subject: [PATCH] Transform overmap ship icons to exact angle of heading. --- code/modules/overmap/ships/ship.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/modules/overmap/ships/ship.dm b/code/modules/overmap/ships/ship.dm index c7d2bed1263..0f038536436 100644 --- a/code/modules/overmap/ships/ship.dm +++ b/code/modules/overmap/ships/ship.dm @@ -13,7 +13,9 @@ name = "spacecraft" desc = "This marker represents a spaceship. Scan it for more information." scanner_desc = "Unknown spacefaring vessel." + dir = NORTH icon_state = "ship" + appearance_flags = TILE_BOUND|KEEP_TOGETHER //VOREStation Edit var/moving_state = "ship_moving" var/vessel_mass = 10000 //tonnes, arbitrary number, affects acceleration provided by engines @@ -163,11 +165,15 @@ /obj/effect/overmap/visitable/ship/update_icon() if(!is_still()) icon_state = moving_state - dir = get_heading() + transform = matrix().Turn(get_heading_degrees()) else icon_state = initial(icon_state) + transform = null ..() +/obj/effect/overmap/visitable/ship/set_dir(new_dir) + return ..(NORTH) // NO! We always face north. + /obj/effect/overmap/visitable/ship/proc/burn() for(var/datum/ship_engine/E in engines) . += E.burn()