- Changed P_XYMovement() to not call P_SlideMove() if the act of being

blocked changed the actor's velocity. I'm not entirely happy with this,
  but it gets push-activated force fields to work.


SVN r1875 (trunk)
This commit is contained in:
Randy Heit 2009-09-25 02:54:13 +00:00
commit 2ad438d696
3 changed files with 40 additions and 24 deletions

View file

@ -2796,7 +2796,9 @@ FUNC(LS_ForceField)
if (it != NULL)
{
P_DamageMobj (it, NULL, NULL, 16, NAME_None);
P_ThrustMobj (it, it->angle + ANGLE_180, 0x7D000);
angle_t an = (it->angle + ANGLE_180) >> ANGLETOFINESHIFT;
it->velx = FixedMul(0x7D000, finecosine[an]);
it->vely = FixedMul(0x7D000, finesine[an]);
}
return true;
}