From 3babdc4c1b6c86178e768cfa94b1722bc229c1de Mon Sep 17 00:00:00 2001 From: Matt Atlas Date: Mon, 13 Jul 2020 18:18:30 +0200 Subject: [PATCH] Fixes ghost emote spam (#9353) Mobs created to use for ghost appearance were dummies instead of mannequins, which made them process. Epic. --- code/datums/records.dm | 2 +- code/modules/mob/abstract/new_player/menu.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/records.dm b/code/datums/records.dm index a86f9f3be6a..5bce6a99366 100644 --- a/code/datums/records.dm +++ b/code/datums/records.dm @@ -132,7 +132,7 @@ /datum/record/general/New(var/mob/living/carbon/human/H, var/nid) ..() if (!H) - var/mob/living/carbon/human/dummy = SSmob.get_mannequin("New record") + var/mob/living/carbon/human/dummy/mannequin/dummy = SSmob.get_mannequin("New record") photo_front = getFlatIcon(dummy, SOUTH, always_use_defdir = TRUE) photo_side = getFlatIcon(dummy, WEST, always_use_defdir = TRUE) else diff --git a/code/modules/mob/abstract/new_player/menu.dm b/code/modules/mob/abstract/new_player/menu.dm index 86163d4f88a..c797f4ec4f9 100644 --- a/code/modules/mob/abstract/new_player/menu.dm +++ b/code/modules/mob/abstract/new_player/menu.dm @@ -239,7 +239,7 @@ observer.timeofdeath = world.time // Set the time of death so that the respawn timer works correctly. announce_ghost_joinleave(src) - var/mob/living/carbon/human/dummy/mannequin = new + var/mob/living/carbon/human/dummy/mannequin/mannequin = new client.prefs.dress_preview_mob(mannequin) observer.appearance = mannequin observer.alpha = 127