From: Aaron Suen Date: Fri, 10 May 2013 01:10:33 +0000 (-0400) Subject: Clear custom player HUDs when emerging players. Fixes #711. X-Git-Tag: 0.4.7~29^2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6911a7d279f487b832882d95318d432d0afbcc6b;p=oweals%2Fminetest.git Clear custom player HUDs when emerging players. Fixes #711. --- diff --git a/src/server.cpp b/src/server.cpp index bf48a40d5..40a4f8a02 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -5077,6 +5077,9 @@ PlayerSAO* Server::emergePlayer(const char *name, u16 peer_id) getPlayerEffectivePrivs(player->getName()), isSingleplayer()); + /* Clean up old HUD elements from previous sessions */ + player->hud.clear(); + /* Add object to environment */ m_env->addActiveObject(playersao);