diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-08-29 20:37:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-29 20:37:54 +0200 |
commit | 1d4a2a6ea7608a9fbe8de07dde8a48476c9f5e0d (patch) | |
tree | c39a77aea0dc5820f0b9f5f5f6b9ed01eec68644 /src/server.cpp | |
parent | 35a40827273c2c30ac018334c7b448545982b784 (diff) | |
download | minetest-1d4a2a6ea7608a9fbe8de07dde8a48476c9f5e0d.tar.gz minetest-1d4a2a6ea7608a9fbe8de07dde8a48476c9f5e0d.tar.bz2 minetest-1d4a2a6ea7608a9fbe8de07dde8a48476c9f5e0d.zip |
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
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp index e3a26b989..0485fc62c 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1431,7 +1431,7 @@ void Server::SendPlayerHPOrDie(PlayerSAO *playersao) DiePlayer(peer_id); } -void Server::SendHP(u16 peer_id, u8 hp) +void Server::SendHP(u16 peer_id, u16 hp) { DSTACK(FUNCTION_NAME); |