mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[raknet] Match BitStream::ReadNormQuat(...)
This commit is contained in:
parent
d25cbca3d3
commit
6775bae89b
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user