Remove 2x radius multiplier for blockmap iterator on explosions. Dunno why I thought I'd need it.

This commit is contained in:
Mari the Deer 2021-04-24 16:13:12 +02:00
commit 302e4e51bc
2 changed files with 3 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r452 \cu(Sat 24 Apr 16:00:14 CEST 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r452 \cu(2021-04-24 16:00:14)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r454 \cu(Sat 24 Apr 16:13:37 CEST 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r454 \cu(2021-04-24 16:13:37)\c-";

View file

@ -1037,7 +1037,7 @@ Class SWWMUtility
if ( !(flags&DE_NOSPLASH) ) Source.CheckSplash(ExplosionRadius);
double brange = 1./(ExplosionRadius-FullDamageRadius);
Actor Instigator = (flags&DE_NOTMISSILE)?Source:Source.target;
BlockThingsIterator bi = BlockThingsIterator.Create(Source,ExplosionRadius*2); // test with doubled radius, just to be sure
BlockThingsIterator bi = BlockThingsIterator.Create(Source,ExplosionRadius);
int nhit = 0, nkill = 0;
while ( bi.Next() )
{