1
0

Rename AddEntityIfNotPresent to AddPlayer

+ Always make a chunk for the player to go into
* Fixes #4847
This commit is contained in:
Tiger Wang
2020-09-03 22:25:35 +01:00
parent a3b5cba6be
commit 5e670a050b
3 changed files with 7 additions and 17 deletions

View File

@@ -3506,7 +3506,7 @@ void cWorld::AddQueuedPlayers(void)
// Add to chunkmap, if not already there (Spawn vs MoveToWorld):
auto PlayerPtr = Player.get();
m_ChunkMap->AddEntityIfNotPresent(std::move(Player));
m_ChunkMap->AddPlayer(std::move(Player));
PlayerPtr->OnAddToWorld(*this);
ASSERT(!PlayerPtr->IsTicking());
PlayerPtr->SetIsTicking(true);