From 92b0a5fb265ef2a4b9c30b755bc00d5d67d7cd8e Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Mon, 25 Apr 2022 15:29:14 +0200 Subject: [PATCH] [MIRROR] Fix display ordering bug with spawn ruins debug verb [MDB IGNORE] (#13096) * Fix display ordering bug with spawn ruins debug verb (#66461) * Fix display ordering bug with spawn ruins debug verb Co-authored-by: RandomGamer123 <31096837+RandomGamer123@users.noreply.github.com> --- code/modules/admin/verbs/debug.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index 9afe0e1d2dd..4eed0967b70 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -629,14 +629,16 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that exists[L.ruin_template] = landmark var/list/names = list() + var/list/themed_names for (var/theme in SSmapping.themed_ruins) names += "---- [theme] ----" + themed_names = list() for (var/name in SSmapping.themed_ruins[theme]) var/datum/map_template/ruin/ruin = SSmapping.themed_ruins[theme][name] - names[name] = list(ruin, theme, list(ruin.default_area)) + themed_names[name] = list(ruin, theme, list(ruin.default_area)) + names += sort_list(themed_names) - - var/ruinname = input("Select ruin", "Spawn Ruin") as null|anything in sort_list(names) + var/ruinname = input("Select ruin", "Spawn Ruin") as null|anything in names var/data = names[ruinname] if (!data) return