- Utilise actor sprite's full precision in instances where angle was converted to Build and back again.

This commit is contained in:
Mitchell Richters 2022-08-28 13:15:31 +10:00 committed by Christoph Oelckers
parent 5c84f93c08
commit d28d6cd4cf
33 changed files with 95 additions and 89 deletions

View file

@ -102,7 +102,7 @@ bool calcChaseCamPos(int* px, int* py, int* pz, DCoreActor* act, sectortype** ps
else
{
// same as wall calculation.
daang = DAngle::fromBuild(act->int_ang() - 512);
daang = act->spr.angle - DAngle90;
newdist = int(np.X * daang.Sin() * (1 << BUILDSINBITS) + np.Y * -daang.Cos() * (1 << BUILDSINBITS));
if (abs(np.X) > abs(np.Y))