diff --git a/src/g_level.cpp b/src/g_level.cpp index d5e28a6f5a..99be28e05e 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -2143,7 +2143,7 @@ DEFINE_ACTION_FUNCTION(FLevelLocals, SphericalCoords) ACTION_RETURN_VEC3(DVector3( deltaangle(vecTo.Angle(), viewYaw).Degrees, - deltaangle(-vecTo.Pitch(), viewPitch).Degrees, + deltaangle(vecTo.Pitch(), viewPitch).Degrees, vecTo.Length() )); } diff --git a/src/vectors.h b/src/vectors.h index 002062f8c6..f06d26f1d0 100644 --- a/src/vectors.h +++ b/src/vectors.h @@ -1417,7 +1417,7 @@ TAngle TVector3::Angle() const template TAngle TVector3::Pitch() const { - return VecToAngle(TVector2(X, Y).Length(), Z); + return -VecToAngle(TVector2(X, Y).Length(), Z); } // Much of this is copied from TVector3. Is all that functionality really appropriate?