mirror of
https://github.com/minetest/minetest.git
synced 2024-11-04 14:53:45 +01:00
Update HUD flags on server like on client
Fixes bug for which commit 6c37e89f08f962eaba788a31f5d3c798ceaa65e6 "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.
This commit is contained in:
parent
d7bbe81726
commit
a4e3ed0136
@ -3034,7 +3034,8 @@ bool Server::hudSetFlags(Player *player, u32 flags, u32 mask)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
SendHUDSetFlags(player->peer_id, flags, mask);
|
SendHUDSetFlags(player->peer_id, flags, mask);
|
||||||
player->hud_flags = flags;
|
player->hud_flags &= ~mask;
|
||||||
|
player->hud_flags |= flags;
|
||||||
|
|
||||||
PlayerSAO* playersao = player->getPlayerSAO();
|
PlayerSAO* playersao = player->getPlayerSAO();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user