Allow broken crushers to be busted.

This commit is contained in:
Mari the Deer 2021-02-19 11:11:37 +01:00
commit 0af4f734c8
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r288 \cu(Thu 18 Feb 22:54:36 CET 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r288 \cu(2021-02-18 22:54:36)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r289 \cu(Fri 19 Feb 11:11:37 CET 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r289 \cu(2021-02-19 11:11:37)\c-";

View file

@ -437,6 +437,14 @@ Class SWWMUtility
return true;
}
}
// moderate: see if it's a busted crusher, we need to be able to break those in case they cause a softlock
let ti = ThinkerIterator.Create("SWWMCrusherBroken",Thinker.STAT_USER);
SWWMCrusherBroken cb;
while ( cb = SWWMCrusherBroken(ti.Next()) )
{
if ( (part == 0) && (cb.fsec == s) ) return true;
if ( (part == 1) && (cb.csec == s) ) return true;
}
// hard mode: look for all lines/actors with movement specials referencing us
for ( int i=0; i<level.Lines.Size(); i++ )
{
@ -486,7 +494,7 @@ Class SWWMUtility
return true;
}
}
let ti = ThinkerIterator.Create("Actor");
ti = ThinkerIterator.Create("Actor");
Actor a;
while ( a = Actor(ti.Next()) )
{