1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00: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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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);