From 5e670a050bb263ec66227e572eaf9fe0a95ccf1c Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Thu, 3 Sep 2020 22:25:35 +0100 Subject: Rename AddEntityIfNotPresent to AddPlayer + Always make a chunk for the player to go into * Fixes #4847 --- src/ChunkMap.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ChunkMap.h') diff --git a/src/ChunkMap.h b/src/ChunkMap.h index 1b04ae3da..795672135 100644 --- a/src/ChunkMap.h +++ b/src/ChunkMap.h @@ -201,9 +201,8 @@ public: /** Adds the entity to its appropriate chunk, takes ownership of the entity pointer */ void AddEntity(OwnedEntity a_Entity); - /** Adds the entity to its appropriate chunk, if the entity is not already added. - Takes ownership of the entity pointer */ - void AddEntityIfNotPresent(OwnedEntity a_Entity); + /** Adds the player to its appropriate chunk, takes ownership of the player pointer */ + void AddPlayer(std::unique_ptr a_Player); /** Returns true if the entity with specified ID is present in the chunks */ bool HasEntity(UInt32 a_EntityID) const; -- cgit v1.2.3