Skip to content

Commit

Permalink
Clear custom player HUDs when emerging players. Fixes #711.
Browse files Browse the repository at this point in the history
  • Loading branch information
Warr1024 committed May 10, 2013
1 parent 5068cb4 commit 6911a7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 6911a7d

Please sign in to comment.