From efe9f6b7e4c422d4bfc9283e893d4358f564d708 Mon Sep 17 00:00:00 2001 From: Raeschen Date: Sun, 5 Sep 2021 20:43:48 +0200 Subject: [PATCH] fix small logical error in last commit --- code/modules/clothing/clothing_ch.dm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/code/modules/clothing/clothing_ch.dm b/code/modules/clothing/clothing_ch.dm index bc3655e87b..ff5e820a26 100644 --- a/code/modules/clothing/clothing_ch.dm +++ b/code/modules/clothing/clothing_ch.dm @@ -26,15 +26,13 @@ if(!fit_for_digi) fit_for_digi = TRUE // set flag even if no icon_state exists, so we don't repeat checks + //if update_icon_define is already set to something, place it in a var to hold it temporarily + if(update_icon_define) + update_icon_define_orig = update_icon_define + // only override icon if a corresponding digitigrade replacement icon_state exists - // otherwise, keep the old non-digi icon + // otherwise, keep the old non-digi icon_define (or nothing) if(icon_state && icon_states(update_icon_define_digi).Find(icon_state)) - - //if update_icon_define is already set to something, place it in a var to hold it temporarily - if(update_icon_define) - update_icon_define_orig = update_icon_define - - //set digi-leg sprite update_icon_define = update_icon_define_digi