From 7581cc12f0a1e88d1ed2170b0101ce49ed97fcd0 Mon Sep 17 00:00:00 2001 From: Marisa the Magician Date: Thu, 6 Feb 2025 20:13:06 +0100 Subject: [PATCH] Remove some leftover debug text. --- language.version | 4 ++-- zscript/handler/swwm_statichandler.zsc | 25 ++++--------------------- 2 files changed, 6 insertions(+), 23 deletions(-) diff --git a/language.version b/language.version index 6a7430c7f..68a517f14 100644 --- a/language.version +++ b/language.version @@ -1,3 +1,3 @@ [default] -SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1176 \cu(jue 06 feb 2025 11:51:14 CET)\c-"; -SWWM_SHORTVER="\cw1.3pre r1176 \cu(2025-02-06 11:51:14)\c-"; +SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1177 \cu(jue 06 feb 2025 20:13:06 CET)\c-"; +SWWM_SHORTVER="\cw1.3pre r1177 \cu(2025-02-06 20:13:06)\c-"; diff --git a/zscript/handler/swwm_statichandler.zsc b/zscript/handler/swwm_statichandler.zsc index 751917d54..985f77673 100644 --- a/zscript/handler/swwm_statichandler.zsc +++ b/zscript/handler/swwm_statichandler.zsc @@ -155,41 +155,24 @@ Class SWWMStaticHandler : StaticEventHandler default: let def = GetDefaultByType((Class)(cls)); // if this class has a morph weapon defined, skip it - if ( def.MorphWeapon ) - { - Console.Printf("skip me: %s",cls.GetClassName()); - break; - } + if ( def.MorphWeapon ) break; // we have to check if there are any discrepancies between this class's start item list and // its parents let pdef = GetDefaultByType((Class)(cls.GetParentClass())); let di = def.GetDropItems(); let pdi = pdef.GetDropItems(); // no items, just skip - if ( !di ) - { - Console.Printf("skip me: %s",cls.GetClassName()); - break; - } + if ( !di ) break; do { // list sizes don't match - if ( (di && !pdi) || (!di && pdi) ) - { - Console.Printf("match me: %s",cls.GetClassName()); - return true; - } + if ( (di && !pdi) || (!di && pdi) ) return true; // mismatch in item names - if ( di.name != pdi.name ) - { - Console.Printf("match me: %s",cls.GetClassName()); - return true; - } + if ( di.name != pdi.name ) return true; di = di.next; pdi = pdi.next; } while ( di || pdi ); - Console.Printf("skip me: %s",cls.GetClassName()); break; } }