diff --git a/code/game/machinery/computer/_computer.dm b/code/game/machinery/computer/_computer.dm index a44721645a3..3c3f0e7f0fa 100644 --- a/code/game/machinery/computer/_computer.dm +++ b/code/game/machinery/computer/_computer.dm @@ -116,7 +116,7 @@ if(!(flags_1 & NODECONSTRUCT_1)) if(circuit) //no circuit, no computer frame var/obj/structure/frame/computer/A = new /obj/structure/frame/computer(src.loc) - A.dir = dir + A.setDir(dir) A.circuit = circuit A.setAnchored(TRUE) if(stat & BROKEN) diff --git a/code/game/machinery/computer/buildandrepair.dm b/code/game/machinery/computer/buildandrepair.dm index a151b0e0c0c..c8a4d68575e 100644 --- a/code/game/machinery/computer/buildandrepair.dm +++ b/code/game/machinery/computer/buildandrepair.dm @@ -114,7 +114,7 @@ P.play_tool_sound(src) to_chat(user, "You connect the monitor.") var/obj/B = new circuit.build_path (loc, circuit) - B.dir = dir + B.setDir(dir) transfer_fingerprints_to(B) qdel(src) return diff --git a/code/game/objects/items/RCD.dm b/code/game/objects/items/RCD.dm index 7745426bdd3..a1f66398657 100644 --- a/code/game/objects/items/RCD.dm +++ b/code/game/objects/items/RCD.dm @@ -619,7 +619,7 @@ RLD var/light = get_turf(winner) var/align = get_dir(winner, A) var/obj/machinery/light/L = new /obj/machinery/light(light) - L.dir = align + L.setDir(align) L.color = color_choice L.light_color = L.color return TRUE diff --git a/code/game/objects/items/RPD.dm b/code/game/objects/items/RPD.dm index f3e7eecfd1f..1c6cc9cfcb3 100644 --- a/code/game/objects/items/RPD.dm +++ b/code/game/objects/items/RPD.dm @@ -438,10 +438,10 @@ GLOBAL_LIST_INIT(transit_tube_recipes, list( else var/obj/structure/c_transit_tube/tube = new queued_p_type(A) - tube.dir = queued_p_dir + tube.setDir(queued_p_dir) if(queued_p_flipped) - tube.dir = turn(queued_p_dir, 45) + tube.setDir(turn(queued_p_dir, 45)) tube.simple_rotate_flip() tube.add_fingerprint(usr) diff --git a/code/game/objects/structures/guillotine.dm b/code/game/objects/structures/guillotine.dm index 0a7b641a8a6..8714722f4bf 100644 --- a/code/game/objects/structures/guillotine.dm +++ b/code/game/objects/structures/guillotine.dm @@ -246,7 +246,7 @@ if (do_after(user, GUILLOTINE_WRENCH_DELAY, target = src)) current_action = 0 default_unfasten_wrench(user, I, 0) - dir = SOUTH + setDir(SOUTH) return TRUE else current_action = 0 diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm index ea89371699d..695395afd2a 100644 --- a/code/game/objects/structures/morgue.dm +++ b/code/game/objects/structures/morgue.dm @@ -123,7 +123,7 @@ GLOBAL_LIST_EMPTY(bodycontainers) //Let them act as spawnpoints for revenants an playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1) playsound(src, 'sound/effects/roll.ogg', 5, 1) var/turf/T = get_step(src, dir) - connected.dir=dir + connected.setDir(dir) for(var/atom/movable/AM in src) AM.forceMove(T) update_icon() diff --git a/code/game/objects/structures/windoor_assembly.dm b/code/game/objects/structures/windoor_assembly.dm index 823d933edbd..10c6e537015 100644 --- a/code/game/objects/structures/windoor_assembly.dm +++ b/code/game/objects/structures/windoor_assembly.dm @@ -32,7 +32,7 @@ /obj/structure/windoor_assembly/New(loc, set_dir) ..() if(set_dir) - dir = set_dir + setDir(set_dir) ini_dir = dir air_update_turf(1) diff --git a/code/game/turfs/simulated/wall/mineral_walls.dm b/code/game/turfs/simulated/wall/mineral_walls.dm index 058473a8177..dbffd1010be 100644 --- a/code/game/turfs/simulated/wall/mineral_walls.dm +++ b/code/game/turfs/simulated/wall/mineral_walls.dm @@ -223,7 +223,7 @@ T.atom_colours = atom_colours.Copy() T.update_atom_colour() if(T.dir != dir) - T.dir = dir + T.setDir(dir) T.transform = transform return T @@ -295,7 +295,7 @@ T.atom_colours = atom_colours.Copy() T.update_atom_colour() if(T.dir != dir) - T.dir = dir + T.setDir(dir) T.transform = transform return T diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm index 85318be931c..cb532e4d5e9 100644 --- a/code/modules/mob/mob_movement.dm +++ b/code/modules/mob/mob_movement.dm @@ -119,7 +119,7 @@ var/atom/movable/P = mob.pulling if(P && !ismob(P) && P.density) - mob.dir = turn(mob.dir, 180) + mob.setDir(turn(mob.dir, 180)) ///Process_Grab() ///Called by client/Move() diff --git a/code/modules/shuttle/navigation_computer.dm b/code/modules/shuttle/navigation_computer.dm index 03538d1085c..fee57423e49 100644 --- a/code/modules/shuttle/navigation_computer.dm +++ b/code/modules/shuttle/navigation_computer.dm @@ -60,7 +60,7 @@ eyeobj = new /mob/camera/aiEye/remote/shuttle_docker() var/mob/camera/aiEye/remote/shuttle_docker/the_eye = eyeobj the_eye.origin = src - the_eye.dir = shuttle_port.dir + the_eye.setDir(shuttle_port.dir) var/turf/origin = locate(shuttle_port.x + x_offset, shuttle_port.y + y_offset, shuttle_port.z) for(var/V in shuttle_port.shuttle_areas) var/area/A = V @@ -137,7 +137,7 @@ my_port.dheight = shuttle_port.dheight my_port.dwidth = shuttle_port.dwidth my_port.hidden = shuttle_port.hidden - my_port.dir = the_eye.dir + my_port.setDir(the_eye.dir) my_port.forceMove(locate(eyeobj.x - x_offset, eyeobj.y - y_offset, eyeobj.z)) if(current_user.client) current_user.client.images -= the_eye.placed_images @@ -166,7 +166,7 @@ /obj/machinery/computer/camera_advanced/shuttle_docker/proc/rotateLandingSpot() var/mob/camera/aiEye/remote/shuttle_docker/the_eye = eyeobj var/list/image_cache = the_eye.placement_images - the_eye.dir = turn(the_eye.dir, -90) + the_eye.setDir(turn(the_eye.dir, -90)) for(var/i in 1 to image_cache.len) var/image/pic = image_cache[i] var/list/coords = image_cache[pic] diff --git a/code/modules/spells/spell_types/spacetime_distortion.dm b/code/modules/spells/spell_types/spacetime_distortion.dm index 2fade61a4a8..7fd857dc51a 100644 --- a/code/modules/spells/spell_types/spacetime_distortion.dm +++ b/code/modules/spells/spell_types/spacetime_distortion.dm @@ -81,7 +81,7 @@ /obj/effect/cross_action/spacetime_dist/Initialize(mapload) . = ..() - dir = pick(GLOB.cardinals) + setDir(pick(GLOB.cardinals)) /obj/effect/cross_action/spacetime_dist/proc/walk_link(atom/movable/AM) if(ismob(AM)) diff --git a/code/modules/station_goals/bsa.dm b/code/modules/station_goals/bsa.dm index be2c4f92bd2..7b8caf28c88 100644 --- a/code/modules/station_goals/bsa.dm +++ b/code/modules/station_goals/bsa.dm @@ -168,12 +168,12 @@ top_layer = top_layer || mutable_appearance(icon, layer = ABOVE_MOB_LAYER) switch(cannon_direction) if(WEST) - dir = WEST + setDir(WEST) pixel_x = -192 top_layer.icon_state = "top_west" icon_state = "cannon_west" if(EAST) - dir = EAST + setDir(EAST) top_layer.icon_state = "top_east" icon_state = "cannon_east" add_overlay(top_layer)