From 6911a7d279f487b832882d95318d432d0afbcc6b Mon Sep 17 00:00:00 2001 From: Aaron Suen Date: Thu, 9 May 2013 21:10:33 -0400 Subject: [PATCH] Clear custom player HUDs when emerging players. Fixes #711. --- src/server.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.30.2