From a15f8e8e7317740fccafa3be9de83191c79a65f0 Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Sat, 20 Mar 2021 23:23:29 +0100 Subject: [PATCH] PROBABLY shouldn't add shadows to things with the CORPSE flag. --- language.version | 4 ++-- zscript/handler/swwm_handler_worldthings.zsc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/language.version b/language.version index 324f7b20e..3706ad2db 100644 --- a/language.version +++ b/language.version @@ -1,3 +1,3 @@ [default] -SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r383 \cu(Sat 20 Mar 23:20:19 CET 2021)\c-"; -SWWM_SHORTVER="\cw0.9.11b-pre r383 \cu(2021-03-20 23:20:19)\c-"; +SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r384 \cu(Sat 20 Mar 23:23:29 CET 2021)\c-"; +SWWM_SHORTVER="\cw0.9.11b-pre r384 \cu(2021-03-20 23:23:29)\c-"; diff --git a/zscript/handler/swwm_handler_worldthings.zsc b/zscript/handler/swwm_handler_worldthings.zsc index 035d5630e..07c72bc06 100644 --- a/zscript/handler/swwm_handler_worldthings.zsc +++ b/zscript/handler/swwm_handler_worldthings.zsc @@ -337,7 +337,7 @@ extend Class SWWMHandler SWWMCombatTracker trk; if ( !swwm_notrack && (e.Thing.bSHOOTABLE || e.Thing.bISMONSTER) && !(e.Thing is 'LampMoth') && !(e.Thing is 'CompanionLamp') ) trk = SWWMCombatTracker.Spawn(e.Thing); - if ( !(e.Thing is 'LampMoth') && (e.Thing.bSHOOTABLE || e.Thing.bISMONSTER || e.Thing.bCORPSE || (e.Thing is 'Inventory') || (e.Thing is 'CompanionLamp')) ) + if ( !(e.Thing is 'LampMoth') && (e.Thing.bSHOOTABLE || e.Thing.bISMONSTER || (e.Thing is 'Inventory') || (e.Thing is 'CompanionLamp')) ) { if ( (swwm_shadows == 2) || ((swwm_shadows == 1) && ((e.Thing is 'Demolitionist') || (e.Thing.SpawnState.sprite == e.Thing.GetSpriteIndex('XZW1')))) ) SWWMShadow.Track(e.Thing);