From be783e52f5ea0609c2053089d8b44e2e78e85751 Mon Sep 17 00:00:00 2001 From: Alphas00 <154434082+Alphas00@users.noreply.github.com> Date: Tue, 28 Jan 2025 22:32:06 +0100 Subject: [PATCH] Update GainStation13/code/modules/resize/height_limits.dm Co-authored-by: sheepishgoat <100518708+sheepishgoat@users.noreply.github.com> --- GainStation13/code/modules/resize/height_limits.dm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/GainStation13/code/modules/resize/height_limits.dm b/GainStation13/code/modules/resize/height_limits.dm index fc5b4860c1..85f68cc852 100644 --- a/GainStation13/code/modules/resize/height_limits.dm +++ b/GainStation13/code/modules/resize/height_limits.dm @@ -36,11 +36,13 @@ GLOBAL_LIST_EMPTY(see_toggle_smallsprite) AA.remove_from_single_hud(mob, L) to_chat(src, "Resize others view toggled OFF.") -//Call to regenerate the sprites and update huds. -//If present, remove the old sprite from the huds and from the mob -//If the size_multiplier is still higher than 1, check if the mob is in the list of smallsprite mobs and add it if not -// add a new sprite by generating it, then go through the list of mobs with smallsprites toggled on and it to their hud -//If the size_multiplier was not higher than one then remove the mob from the list of smallsprite mobs +/** +* Call to regenerate the sprites and update huds. +* * If present, remove the old sprite from the huds and from the mob +* * If the size_multiplier is still higher than 1, check if the mob is in the list of smallsprite mobs and add it if not +* * add a new sprite by generating it, then go through the list of mobs with smallsprites toggled on and it to their hud +* * If the size_multiplier was not higher than one then remove the mob from the list of smallsprite mobs +*/ /mob/living/proc/regenerate_smallsprite() if(alternate_appearances && alternate_appearances["gscode_smallsprite"]) for(var/mob/M in GLOB.see_toggle_smallsprite)