- Convert delta test in PlayerAngle::processhelpers() to degrees, missed during cf2788b14b3d5c2e0533ad4cdc7912253848a5b9.

This commit is contained in:
Mitchell Richters 2022-08-28 14:19:04 +10:00 committed by Christoph Oelckers
parent 69dff8658f
commit bd7a004c4c

View file

@ -5,6 +5,7 @@
#include "interphelpers.h"
#include "gamecvars.h"
#include "gamestruct.h"
#include "gamefuncs.h"
#include "packet.h"
struct PlayerHorizon
@ -188,7 +189,7 @@ struct PlayerAngle
{
auto delta = deltaangle(ang, target).Degrees();
if (abs(delta) > 1)
if (abs(delta) > BAngToDegree)
{
ang += DAngle::fromDeg(scaleAdjust * delta);
}