Skip to content

Commit d8eb696

Browse files
committed
Return result in degrees
1 parent f5ff12d commit d8eb696

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Client/game_sa/CWorldSA.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*****************************************************************************/
1111

1212
#include "StdInc.h"
13+
#include <numbers>
1314
#include <multiplayer/CMultiplayer.h>
1415
#include <core/CCoreInterface.h>
1516
#include "CGameSA.h"
@@ -549,7 +550,7 @@ CEntity* CWorldSA::TestSphereAgainstWorld(const CVector& sphereCenter, float rad
549550
{
550551
result.entityPosition = entity->m_transform.m_translate;
551552
result.entityRotation.fX = result.entityRotation.fY = 0.0f;
552-
result.entityRotation.fZ = entity->m_transform.m_heading;
553+
result.entityRotation.fZ = entity->m_transform.m_heading * (180.0f/std::numbers::pi);
553554
}
554555
result.entityRotation = -result.entityRotation;
555556
result.lodID = entity->m_pLod ? entity->m_pLod->m_nModelIndex : 0;

0 commit comments

Comments
 (0)