From a7ef6ced0c6f29b6e16e4c056b11dc894a96882b Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Tue, 1 Jun 2021 16:52:02 +0200 Subject: [PATCH] Prevent blob shadows from appearing for things with zero radius. --- language.version | 4 ++-- zscript/swwm_common_fx.zsc | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/language.version b/language.version index a054fce78..a183a4239 100644 --- a/language.version +++ b/language.version @@ -1,3 +1,3 @@ [default] -SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r519 \cu(Tue 1 Jun 16:51:13 CEST 2021)\c-"; -SWWM_SHORTVER="\cw0.9.11b-pre r519 \cu(2021-06-01 16:51:13)\c-"; +SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r520 \cu(Tue 1 Jun 16:52:02 CEST 2021)\c-"; +SWWM_SHORTVER="\cw0.9.11b-pre r520 \cu(2021-06-01 16:52:02)\c-"; diff --git a/zscript/swwm_common_fx.zsc b/zscript/swwm_common_fx.zsc index 00473a801..e3e480a3a 100644 --- a/zscript/swwm_common_fx.zsc +++ b/zscript/swwm_common_fx.zsc @@ -1237,6 +1237,8 @@ Class SWWMShadow : Actor if ( other is 'SWWMShadow' ) return; // no shadows for overlay actors if ( other is 'GhostArtifactX' ) return; + // no shadows for things with zero radius + if ( other.radius <= 0. ) return; let s = SWWMShadow(Spawn("SWWMShadow",other.pos)); s.target = other; s.Update(true);