[raknet] Match BitStream::ReadNormQuat(...)

This commit is contained in:
RD42 2024-10-06 20:44:07 +08:00
parent d25cbca3d3
commit 6775bae89b

View File

@ -1384,7 +1384,7 @@ namespace RakNet
if (cxNeg) x=-x;
if (cyNeg) y=-y;
if (czNeg) z=-z;
float difference = 1.0 - x*x - y*y - z*z;
float difference = 1.0f - x*x - y*y - z*z;
if (difference < 0.0f)
difference=0.0f;
w = (templateType)(sqrt(difference));