From 1d4a2a6ea7608a9fbe8de07dde8a48476c9f5e0d Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Tue, 29 Aug 2017 20:37:54 +0200 Subject: Network proto handlers/container fixes (#6334) * Fix HP transport + some double <-> float problems TOCLIENT_HP transport u16 hp as a u8, use u16 HP, this prevent HP over 255 to overflow across network * Fix more double/float problem in serverpackethandler & remove implicit struct type for TileAnimationParams * Fix connection unittests container --- src/unittest/test_connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/unittest/test_connection.cpp') diff --git a/src/unittest/test_connection.cpp b/src/unittest/test_connection.cpp index dcfc3b4e5..af5845a18 100644 --- a/src/unittest/test_connection.cpp +++ b/src/unittest/test_connection.cpp @@ -246,7 +246,7 @@ void TestConnection::testConnectSendReceive() NetworkPacket pkt; pkt.putRawPacket((u8*) "Hello World !", 14, 0); - Buffer sentdata = pkt.oldForgePacket(); + SharedBuffer sentdata = pkt.oldForgePacket(); infostream<<"** running client.Send()"<