Fix possible null dereference in heart.

This commit is contained in:
Mari the Deer 2021-04-28 09:14:53 +02:00
commit cc3b4366fc
3 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r455 \cu(Mon 26 Apr 21:01:29 CEST 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r455 \cu(2021-04-26 21:01:29)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r456 \cu(Wed 28 Apr 09:14:53 CEST 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r456 \cu(2021-04-28 09:14:53)\c-";

View file

@ -120,7 +120,7 @@ Class SWWMLevelCompatibility : LevelPostProcessor
level.nextsecretmap = level.nextmap; // so the handler can detect this
level.nextmap = "E5M1";
break;
// Micro Slaughter Community Project MAP13 (beta) / MAP14 (rc1)
// Micro Slaughter Community Project MAP13 (beta) / MAP14 (v1)
case 'E45AA3BE411845AA0DEE7CA5DAAB65FE':
case 'CDF12AAE960E6BD11D98E1F0A1782B7B':
// reduce OBSCENELY EXCESSIVE number of cell packs in voodoo doll conveyors (400), which will cause immense lag when replaced with mod ammo

View file

@ -242,7 +242,11 @@ Class LoveHeart : Actor
else if ( min(ceilingz,pos.z+height) > cl ) LinePart = 2;
else LinePart = 1;
}
else LinePart = 1; // always middle
else
{
LinePart = 1; // always middle
LineSide = 0;
}
if ( Blocking3DFloor )
{
for ( int i=0; i<BlockingLine.backsector.Get3DFloorCount(); i++ )