Clear custom player HUDs when emerging players. Fixes #711.

This commit is contained in:
Aaron Suen 2013-05-09 21:10:33 -04:00
parent 5068cb40ce
commit 6911a7d279

@ -5077,6 +5077,9 @@ PlayerSAO* Server::emergePlayer(const char *name, u16 peer_id)
getPlayerEffectivePrivs(player->getName()), getPlayerEffectivePrivs(player->getName()),
isSingleplayer()); isSingleplayer());
/* Clean up old HUD elements from previous sessions */
player->hud.clear();
/* Add object to environment */ /* Add object to environment */
m_env->addActiveObject(playersao); m_env->addActiveObject(playersao);