diff options
Diffstat (limited to 'src/Protocol/Packetizer.cpp')
-rw-r--r-- | src/Protocol/Packetizer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Protocol/Packetizer.cpp b/src/Protocol/Packetizer.cpp index 2b27f7b2f..0a84d4678 100644 --- a/src/Protocol/Packetizer.cpp +++ b/src/Protocol/Packetizer.cpp @@ -64,7 +64,7 @@ cPacketizer::~cPacketizer() void cPacketizer::WriteByteAngle(double a_Angle) { - WriteChar(static_cast<char>(255 * a_Angle / 360)); + WriteBEInt8(static_cast<Int8>(255 * a_Angle / 360)); } @@ -73,8 +73,7 @@ void cPacketizer::WriteByteAngle(double a_Angle) void cPacketizer::WriteFPInt(double a_Value) { - Int32 Value = static_cast<Int32>(a_Value * 32); - WriteInt(Value); + WriteBEInt32(static_cast<Int32>(a_Value * 32)); } |