Skip to content

Commit 511ae19

Browse files
committed
Refactor
1 parent 6fab915 commit 511ae19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5033,7 +5033,7 @@ bool CStaticFunctionDefinitions::GetCameraMatrix(CVector& vecPosition, CVector&
50335033
float cosRoll = worldUp.DotProduct(&projectedUp);
50345034
float sinRoll = cameraRight.DotProduct(&worldUp);
50355035

5036-
fRoll = atan2(sinRoll, cosRoll) * (180.0f / 3.14159265359f);
5036+
fRoll = std::atan2(sinRoll, cosRoll) * (180.0f / std::numbers::pi_v<float>);
50375037
}
50385038

50395039
return true;

0 commit comments

Comments
 (0)