1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

Refactor builtin HUD (#14346)

This commit is contained in:
cx384
2024-04-10 11:43:15 +02:00
committed by GitHub
parent 284f6d3682
commit 8a5e49c856
4 changed files with 262 additions and 220 deletions

View File

@@ -1784,8 +1784,6 @@ void Server::SendHUDSetFlags(session_t peer_id, u32 flags, u32 mask)
{
NetworkPacket pkt(TOCLIENT_HUD_SET_FLAGS, 4 + 4, peer_id);
flags &= ~(HUD_FLAG_HEALTHBAR_VISIBLE | HUD_FLAG_BREATHBAR_VISIBLE);
pkt << flags << mask;
Send(&pkt);