Skip to content

Commit

Permalink
Update HUD flags on server like on client
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
est31 committed Nov 22, 2015
1 parent d7bbe81 commit a4e3ed0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server.cpp
Expand Up @@ -3034,7 +3034,8 @@ bool Server::hudSetFlags(Player *player, u32 flags, u32 mask)
return false;

SendHUDSetFlags(player->peer_id, flags, mask);
player->hud_flags = flags;
player->hud_flags &= ~mask;
player->hud_flags |= flags;

PlayerSAO* playersao = player->getPlayerSAO();

Expand Down

0 comments on commit a4e3ed0

Please sign in to comment.