- Remove some Normalized360() method calls I added where it shouldn't be necessary.

This commit is contained in:
Mitchell Richters 2022-08-29 16:58:06 +10:00 committed by Christoph Oelckers
parent d133839e2e
commit dbcde19834
2 changed files with 2 additions and 2 deletions

View file

@ -263,7 +263,7 @@ void RestartPlayer(int nPlayer)
pActor->spr.pos = nNStartSprite->spr.pos;
ChangeActorSect(pActor, nNStartSprite->sector());
plr->angle.ang = nNStartSprite->spr.angle.Normalized360();
plr->angle.ang = nNStartSprite->spr.angle;
pActor->spr.angle = plr->angle.ang;
floorsprt = insertActor(pActor->sector(), 0);

View file

@ -1539,7 +1539,7 @@ void MovePlayer(PLAYER* pp, SECTOR_OBJECT* sop, int nx, int ny)
}
// increment Players delta angle
pp->RevolveDeltaAng = (pp->RevolveDeltaAng + GlobSpeedSO).Normalized360();
pp->RevolveDeltaAng += GlobSpeedSO;
pp->pos.XY() = rotatepoint(sop->pmid.XY(), {pp->Revolve.X * inttoworld, pp->Revolve.Y * inttoworld}, pp->RevolveDeltaAng);