Skip to content

Commit a4e3ed0

Browse files
committedNov 22, 2015
Update HUD flags on server like on client
Fixes bug for which commit 6c37e89 "Fix old client showing duplicated health bar on new server" by @sapier laid the groundwork, where the server has updated its copy of the hud flags without respecting the mask. Fixes #3395.
1 parent d7bbe81 commit a4e3ed0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/server.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -3034,7 +3034,8 @@ bool Server::hudSetFlags(Player *player, u32 flags, u32 mask)
30343034
return false;
30353035

30363036
SendHUDSetFlags(player->peer_id, flags, mask);
3037-
player->hud_flags = flags;
3037+
player->hud_flags &= ~mask;
3038+
player->hud_flags |= flags;
30383039

30393040
PlayerSAO* playersao = player->getPlayerSAO();
30403041

0 commit comments

Comments
 (0)
Please sign in to comment.