From 7e3905ce5fea1a29889b9fc1ff21cfe316aef400 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Tue, 16 Apr 2024 12:13:25 +0300 Subject: [PATCH] [MIRROR] Fixes SMES terminal placing under the SMES and not under the player (#2908) * Fixes SMES terminal placing under the SMES and not under the player (#82665) ## About The Pull Request Changes `src` to`user` to get intended behavior. * Fixes SMES terminal placing under the SMES and not under the player --------- Co-authored-by: NovaBot <154629622+NovaBot13@users.noreply.github.com> Co-authored-by: Iajret <8430839+Iajret@users.noreply.github.com> --- code/modules/power/smes.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm index 1d7403ca667..2aa5247451d 100644 --- a/code/modules/power/smes.dm +++ b/code/modules/power/smes.dm @@ -136,7 +136,7 @@ if(!can_place_terminal(user, item, silent = TRUE)) return var/obj/item/stack/cable_coil/cable = item - var/turf/turf = get_turf(src) + var/turf/turf = get_turf(user) var/obj/structure/cable/connected_cable = turf.get_cable_node(terminal_cable_layer) //get the connecting node cable, if there's one if (prob(50) && electrocute_mob(user, connected_cable, connected_cable, 1, TRUE)) //animate the electrocution if uncautious and unlucky do_sparks(5, TRUE, src) @@ -168,12 +168,12 @@ if(set_dir & (set_dir - 1))//we don't want diagonal click return FALSE - var/turf/smes_turf = get_turf(src) + var/turf/terminal_turf = get_turf(user) if(!panel_open) if(!silent && user) balloon_alert(user, "open the maintenance panel!") return FALSE - if(smes_turf.underfloor_accessibility < UNDERFLOOR_INTERACTABLE) + if(terminal_turf.underfloor_accessibility < UNDERFLOOR_INTERACTABLE) if(!silent && user) balloon_alert(user, "remove the floor plating!") return FALSE