From 9e29dd751401e154c649101330656708fdba2134 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 28 Jan 2021 02:50:15 +0100 Subject: [PATCH] [MIRROR] Anon names post-roundstart now correctly changes IDs as well (#2909) * woop (#56400) Anon names post-roundstart now correctly changes IDs as well * Anon names post-roundstart now correctly changes IDs as well Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com> --- code/modules/admin/verbs/anonymousnames.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/verbs/anonymousnames.dm b/code/modules/admin/verbs/anonymousnames.dm index 34af6d95eb4..595396224a0 100644 --- a/code/modules/admin/verbs/anonymousnames.dm +++ b/code/modules/admin/verbs/anonymousnames.dm @@ -59,8 +59,9 @@ if(issilicon(player)) player.fully_replace_character_name(player.real_name, theme.anonymous_ai_name(isAI(player))) else + var/original_name = player.real_name //id will not be changed if you do not do this randomize_human(player) //do this first so the special name can be given - player.fully_replace_character_name(player.real_name, theme.anonymous_name(player)) + player.fully_replace_character_name(original_name, theme.anonymous_name(player)) /* Datum singleton initialized by the client proc to hold the naming generation */ /datum/anonymous_theme