- added handling for MF5_NOINTERACTION to A_Weave.

SVN r3507 (trunk)
This commit is contained in:
Christoph Oelckers 2012-04-01 11:15:16 +00:00
parent 92a8f8518c
commit 3e7473e51a

View file

@ -3785,7 +3785,18 @@ void A_Weave(AActor *self, int xyspeed, int zspeed, fixed_t xydist, fixed_t zdis
dist = FixedMul(FloatBobOffsets[weaveXY], xydist); dist = FixedMul(FloatBobOffsets[weaveXY], xydist);
newX += FixedMul (finecosine[angle], dist); newX += FixedMul (finecosine[angle], dist);
newY += FixedMul (finesine[angle], dist); newY += FixedMul (finesine[angle], dist);
P_TryMove (self, newX, newY, true); if (!(self->flags5 & MF5_NOINTERACTION))
{
P_TryMove (self, newX, newY, true);
}
else
{
self->UnlinkFromWorld ();
self->flags |= MF_NOBLOCKMAP;
self->x = newX;
self->y = newY;
self->LinkToWorld ();
}
self->WeaveIndexXY = weaveXY; self->WeaveIndexXY = weaveXY;
} }