diff --git a/code/ATMOSPHERICS/atmospherics.dm b/code/ATMOSPHERICS/atmospherics.dm index 82e726f61e4..4da786ef77b 100644 --- a/code/ATMOSPHERICS/atmospherics.dm +++ b/code/ATMOSPHERICS/atmospherics.dm @@ -28,41 +28,6 @@ obj/machinery/atmospherics/process() return PROCESS_KILL build_network() -/* -obj/machinery/atmospherics/Destroy() - - worldm << "Pre Destroy()" - test_pipenet() - ..() - world << "Post Destroy()" - test_pipenet() - -obj/machinery/atmospherics/verb/test_pipenet() - set src in view() - var/found = 0 - var/srcref = "\ref[src]" - var/netref = "" - var/pipelineref = "" - for(var/datum/pipe_network/Network in pipe_networks) - netref = "\ref[Network]" - for(var/obj/machinery/atmospherics/AT in Network.normal_members) - if(AT == src) - world << "Found [srcref] - [src.type] in normal_members of pipenet#[netref]" - found++ - for(var/datum/pipeline/PL in Network.line_members) - pipelineref = "\ref[PL]" - for(var/obj/machinery/atmospherics/AT in PL.members) - if(AT == src) - world << "Found [srcref] - [src.type] in members of pipeline#[pipelineref] in pipenet#[netref]" - found++ - for(var/obj/machinery/atmospherics/ATE in PL.edges) - if(ATE == src) - world << "Found [srcref] - [src.type] in edges of pipeline#[pipelineref] in pipenet#[netref]" - found++ - if(!found) - world << "Unable to find [srcref] in any pipenets" -*/ - obj/machinery/atmospherics/proc/network_expand(datum/pipe_network/new_network, obj/machinery/atmospherics/pipe/reference) // Check to see if should be added to network. Add self if so and adjust variables appropriately. // Note don't forget to have neighbors look as well! diff --git a/code/modules/power/power.dm b/code/modules/power/power.dm index f96a76779ab..2509075a27b 100644 --- a/code/modules/power/power.dm +++ b/code/modules/power/power.dm @@ -58,7 +58,7 @@ // increment the power usage stats for an area /obj/machinery/proc/use_power(var/amount, var/chan = -1) // defaults to power_channel - var/area/A = src.loc.loc // make sure it's in an area + var/area/A = get_area(src) // make sure it's in an area if(!A || !isarea(A) || !A.master) return if(chan == -1)