From 15dc533eaec9fd6a3bc1509936cf033d1f25ecec Mon Sep 17 00:00:00 2001 From: Repede Date: Thu, 7 Dec 2023 18:49:53 -0500 Subject: [PATCH 1/2] Make area jump work even if not specifying a area name --- code/modules/admin/verbs/adminjump.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/verbs/adminjump.dm b/code/modules/admin/verbs/adminjump.dm index ee127136da9..13719f3e605 100644 --- a/code/modules/admin/verbs/adminjump.dm +++ b/code/modules/admin/verbs/adminjump.dm @@ -20,7 +20,8 @@ if(areaname) A = return_sorted_areas()[areaname] else - A = tgui_input_list(usr, "Pick an area:", "Jump to Area", return_sorted_areas()) + var/newareaname = tgui_input_list(usr, "Pick an area:", "Jump to Area", return_sorted_areas()) + A = return_sorted_areas()[newareaname] if(!A) return From 04861dc38091afec6dbffc4623bb2b59ef1568c3 Mon Sep 17 00:00:00 2001 From: Repede Date: Thu, 7 Dec 2023 18:53:44 -0500 Subject: [PATCH 2/2] comment --- code/modules/admin/verbs/adminjump.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/verbs/adminjump.dm b/code/modules/admin/verbs/adminjump.dm index 13719f3e605..de6373de69a 100644 --- a/code/modules/admin/verbs/adminjump.dm +++ b/code/modules/admin/verbs/adminjump.dm @@ -21,7 +21,7 @@ A = return_sorted_areas()[areaname] else var/newareaname = tgui_input_list(usr, "Pick an area:", "Jump to Area", return_sorted_areas()) - A = return_sorted_areas()[newareaname] + A = return_sorted_areas()[newareaname] // YW EDIT - tgui_input_list returns strings even if var is area... Get area from name with this if(!A) return