- 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
|
|
@ -5024,9 +5024,7 @@ void A_Weave(AActor *self, int xyspeed, int zspeed, fixed_t xydist, fixed_t zdis
|
|||
{
|
||||
self->UnlinkFromWorld ();
|
||||
self->flags |= MF_NOBLOCKMAP;
|
||||
// the following 4 lines are for future-proofing this for both interpolation overhaul and line portals.
|
||||
// For portals we need to calculate the destination including the portal offset
|
||||
// and for interpolation we need to set the performed movement explicitly, because SetXY cannot do that.
|
||||
// We need to do portal offsetting here explicitly, because SetXY cannot do that.
|
||||
newX -= self->X();
|
||||
newY -= self->Y();
|
||||
self->SetXY(self->Vec2Offset(newX, newY));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue