From dbcde19834d03debc8aecdf4c2eaf4f2da0b4edd Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 29 Aug 2022 16:58:06 +1000 Subject: [PATCH] - Remove some `Normalized360()` method calls I added where it shouldn't be necessary. --- source/games/exhumed/src/player.cpp | 2 +- source/games/sw/src/track.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/exhumed/src/player.cpp b/source/games/exhumed/src/player.cpp index ee70aba92..6746dfd53 100644 --- a/source/games/exhumed/src/player.cpp +++ b/source/games/exhumed/src/player.cpp @@ -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); diff --git a/source/games/sw/src/track.cpp b/source/games/sw/src/track.cpp index ec31a6750..4543fbb99 100644 --- a/source/games/sw/src/track.cpp +++ b/source/games/sw/src/track.cpp @@ -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);