- SW: Fix bad setup for following killer actor upon death.

This commit is contained in:
Mitchell Richters 2022-10-10 17:05:50 +11:00 committed by Christoph Oelckers
parent d68bd0d11d
commit b81a465336

View file

@ -6098,7 +6098,7 @@ void DoPlayerDeathFollowKiller(PLAYER* pp)
{
if (FAFcansee(ActorVectOfTop(killer), killer->sector(), pp->pos, pp->cursector))
{
pp->angle.addadjustment(deltaangle(pp->angle.ang, VecToAngle(killer->spr.pos.XY() - pp->pos.Y)) * (1. / 16.));
pp->angle.addadjustment(deltaangle(pp->angle.ang, (killer->spr.pos.XY() - pp->pos.XY()).Angle()) * (1. / 16.));
}
}
}