From e4f0a84404f6954ec91e425457f8f9b62441c226 Mon Sep 17 00:00:00 2001 From: Timothy Teakettle <59849408+timothyteakettle@users.noreply.github.com> Date: Thu, 23 Jul 2020 19:33:26 +0100 Subject: [PATCH] cut overlay --- code/modules/mob/living/simple_animal/bot/secbot.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/bot/secbot.dm b/code/modules/mob/living/simple_animal/bot/secbot.dm index e6a9adf9ac..9d45b96831 100644 --- a/code/modules/mob/living/simple_animal/bot/secbot.dm +++ b/code/modules/mob/living/simple_animal/bot/secbot.dm @@ -159,7 +159,6 @@ arrest_texts = initial(arrest_texts) arrest_emote = initial(arrest_emote) bot_accessory = null - stored_fashion = null regenerate_icons() /mob/living/simple_animal/bot/secbot/beepsky/explode() @@ -339,6 +338,10 @@ Auto Patrol: []"}, if(!stored_fashion.obj_color) stored_fashion.obj_color = bot_accessory.color add_overlay(stored_fashion.get_overlay()) + else + if(stored_fashion) + cut_overlay(stored_fashion.get_overlay()) + stored_fashion = null /mob/living/simple_animal/bot/secbot/emag_act(mob/user) . = ..()