From 590ff03c8604fd3f4ca599a0156e7a4f63cbdc6d Mon Sep 17 00:00:00 2001 From: mwerezak Date: Mon, 15 Sep 2014 22:43:17 -0400 Subject: [PATCH] Changes last debug verb to proc and adds it to debug list --- code/ATMOSPHERICS/_atmospherics_helpers.dm | 7 +++---- code/modules/admin/verbs/mapping.dm | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/ATMOSPHERICS/_atmospherics_helpers.dm b/code/ATMOSPHERICS/_atmospherics_helpers.dm index f6eb8e2fa6..8f1242fa5e 100644 --- a/code/ATMOSPHERICS/_atmospherics_helpers.dm +++ b/code/ATMOSPHERICS/_atmospherics_helpers.dm @@ -14,12 +14,11 @@ /obj/machinery/atmospherics/var/debug = 0 -/obj/machinery/atmospherics/verb/toggle_debug() +/client/proc/atmos_toggle_debug(var/obj/machinery/atmospherics/M in view()) set name = "Toggle Debug Messages" set category = "Debug" - set src in view() - debug = !debug - usr << "[src]: Debug messages toggled [debug? "on" : "off"]." + M.debug = !M.debug + usr << "[M]: Debug messages toggled [M.debug? "on" : "off"]." //Generalized gas pumping proc. //Moves gas from one gas_mixture to another and returns the amount of power needed (assuming 1 second), or -1 if no gas was pumped. diff --git a/code/modules/admin/verbs/mapping.dm b/code/modules/admin/verbs/mapping.dm index 2e44158a80..fa5fba4ba0 100644 --- a/code/modules/admin/verbs/mapping.dm +++ b/code/modules/admin/verbs/mapping.dm @@ -164,6 +164,7 @@ var/list/debug_verbs = list ( ,/client/proc/view_power_update_stats_area ,/client/proc/view_power_update_stats_machines ,/client/proc/toggle_power_update_profiling + ,/client/proc/atmos_toggle_debug )