1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Fix nick completion

This commit is contained in:
PilzAdam 2013-03-25 19:13:25 +01:00
parent 76b86c0368
commit b0e6806077
7 changed files with 21 additions and 18 deletions

View file

@ -708,11 +708,15 @@ public:
if(player && player->isLocal()){
m_is_local_player = true;
}
m_env->addPlayerName(m_name.c_str());
}
}
~GenericCAO()
{
if(m_is_player){
m_env->removePlayerName(m_name.c_str());
}
}
static ClientActiveObject* create(IGameDef *gamedef, ClientEnvironment *env)