Remove some leftover debug text.
This commit is contained in:
parent
8526c2ffb0
commit
7581cc12f0
2 changed files with 6 additions and 23 deletions
|
|
@ -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-";
|
||||
|
|
|
|||
|
|
@ -155,41 +155,24 @@ Class SWWMStaticHandler : StaticEventHandler
|
|||
default:
|
||||
let def = GetDefaultByType((Class<PlayerPawn>)(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<PlayerPawn>)(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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue