- link actors into blockmap through linked line portals.
Links through sector portals are not done because nearly all the checks can be performed without doing this so if it works without there's no need to add more processing time. Will have to see if there's cases left where such a link is needed and if so, whether there's better options to do it. For line portals such links are necessary to have proper collision detection with actors that are currently transitioning the portal.
This commit is contained in:
parent
9d877f75e3
commit
899389e6a4
6 changed files with 72 additions and 47 deletions
|
|
@ -5250,7 +5250,7 @@ void P_RadiusAttack(AActor *bombspot, AActor *bombsource, int bombdamage, int bo
|
|||
double bombdistancefloat = 1.f / (double)(bombdistance - fulldamagedistance);
|
||||
double bombdamagefloat = (double)bombdamage;
|
||||
|
||||
FPortalGroupArray grouplist;
|
||||
FPortalGroupArray grouplist(FPortalGroupArray::PGA_Full3d);
|
||||
FMultiBlockThingsIterator it(grouplist, bombspot->X(), bombspot->Y(), bombspot->Z() - bombdistfix, bombspot->height + bombdistfix*2, bombdistfix);
|
||||
FMultiBlockThingsIterator::CheckResult cres;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue