From ead5da376dc6a898128ffede174b8a34c3a73ce0 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 6 Apr 2016 22:43:08 +0200 Subject: [PATCH] Cannot cast a Float to Unsigned integer directly on ARM, of sign will be lost, so double cast --- Sources/Engine/Network/EMsgBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 Sources/Engine/Network/EMsgBuffer.cpp diff --git a/Sources/Engine/Network/EMsgBuffer.cpp b/Sources/Engine/Network/EMsgBuffer.cpp old mode 100644 new mode 100755 index befe836..81b61fc --- a/Sources/Engine/Network/EMsgBuffer.cpp +++ b/Sources/Engine/Network/EMsgBuffer.cpp @@ -41,7 +41,7 @@ void AngleToUL(ANGLE3D &Angle,ULONG &ulResult) ubDir = (UBYTE) (AxisAngles(2)/90*127); ulResult = ulResult << 8; ulResult |= ubDir; - swAngle = (UWORD) (fRotAngle * 180); // after rounding, angle is precise up to 1/180 degrees (65536/360 ~ 180) + swAngle = (UWORD) (SWORD) (fRotAngle * 180); // after rounding, angle is precise up to 1/180 degrees (65536/360 ~ 180) ulResult = (ulResult << 16) | swAngle; };