mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
A little cleanup since previous commit
This commit is contained in:
parent
70f104be07
commit
1b450861f0
@ -659,10 +659,7 @@ void GenericCAO::initialize(const std::string &data)
|
||||
if (player && strcmp(player->getName(), m_name.c_str()) == 0) {
|
||||
m_is_local_player = true;
|
||||
m_is_visible = false;
|
||||
LocalPlayer* localplayer = player;
|
||||
|
||||
assert( localplayer != NULL );
|
||||
localplayer->setCAO(this);
|
||||
player->setCAO(this);
|
||||
}
|
||||
m_env->addPlayerName(m_name.c_str());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user