From 49ccb01e31b7ebe863d623a8bd7a033e97eba5c8 Mon Sep 17 00:00:00 2001 From: Emperor Vasgen IV Date: Tue, 9 Jan 2024 22:02:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=BA=20=D0=B1=D0=B8=D0=BB=D0=B4=D0=BC=D0=BE=D0=B4=D1=83=20?= =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D1=89=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20callproc=20=D0=B2=20=D0=B4=D1=80=D1=83=D0=B3=D0=BE?= =?UTF-8?q?=D0=B5=20=D0=BC=D0=B5=D1=81=D1=82=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- baystation12.dme | 2 +- code/modules/admin/admin_verbs.dm | 8 +++----- .../code}/modules/admin/buildmode/callproc.dm | 0 3 files changed, 4 insertions(+), 6 deletions(-) rename {code => infinity/code}/modules/admin/buildmode/callproc.dm (100%) diff --git a/baystation12.dme b/baystation12.dme index e845c4db13892..99fd71276cb92 100644 --- a/baystation12.dme +++ b/baystation12.dme @@ -1257,7 +1257,6 @@ #include "code\modules\admin\buildmode\areas.dm" #include "code\modules\admin\buildmode\atmosphere.dm" #include "code\modules\admin\buildmode\build.dm" -#include "code\modules\admin\buildmode\callproc.dm" #include "code\modules\admin\buildmode\copypaste.dm" #include "code\modules\admin\buildmode\edit.dm" #include "code\modules\admin\buildmode\ladders.dm" @@ -3237,6 +3236,7 @@ #include "customs\code\taushai.dm" #include "customs\code\vezha.dm" #include "customs\code\zakatneba.dm" +#include "infinity\code\modules\admin\buildmode\callproc.dm" #include "interface\interface.dm" #include "interface\skin.dmf" #include "maps\_maps.dm" diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 8e1bab8498efd..f00b55d57ac45 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -583,12 +583,10 @@ var/list/admin_verbs_xeno = list( if(!check_rights(R_ADMIN)) return - if(istype(CH, /datum/click_handler/build_mode)) - CH.Exit() - QDEL_NULL(CH) + if(istype(mob.GetClickHandler(), /datum/click_handler/build_mode)) + mob.RemoveClickHandler(/datum/click_handler/build_mode) else - CH = new /datum/click_handler/build_mode(mob) - CH.Enter() + mob.PushClickHandler(/datum/click_handler/build_mode) /client/proc/object_talk(var/msg as text) // -- TLE set category = "Special Verbs" diff --git a/code/modules/admin/buildmode/callproc.dm b/infinity/code/modules/admin/buildmode/callproc.dm similarity index 100% rename from code/modules/admin/buildmode/callproc.dm rename to infinity/code/modules/admin/buildmode/callproc.dm