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-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=6911a7d279f487b832882d95318d432d0afbcc6b;p=zefram%2Fminetest%2Fminetest_engine.git Clear custom player HUDs when emerging players. Fixes #711. --- diff --git a/src/server.cpp b/src/server.cpp index bf48a40d..40a4f8a0 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);