From 1d1f3fa77b8a84bf5f6c697685cd4819978344eb Mon Sep 17 00:00:00 2001 From: RandomGamer123 <31096837+RandomGamer123@users.noreply.github.com> Date: Mon, 25 Apr 2022 00:35:38 -0400 Subject: [PATCH] Fix display ordering bug with spawn ruins debug verb (#66461) --- 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