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/server.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server.h') diff --git a/src/server.h b/src/server.h index f14a861fd..63da8d5db 100644 --- a/src/server.h +++ b/src/server.h @@ -347,7 +347,7 @@ private: friend class RemoteClient; void SendMovement(u16 peer_id); - void SendHP(u16 peer_id, u8 hp); + void SendHP(u16 peer_id, u16 hp); void SendBreath(u16 peer_id, u16 breath); void SendAccessDenied(u16 peer_id, AccessDeniedCode reason, const std::string &custom_reason, bool reconnect = false); -- cgit v1.2.3