1
0

Fixed a race condition when adding a player to a world.

This commit is contained in:
madmaxoft
2014-06-10 18:25:53 +02:00
parent 6c43799cc5
commit 366ecf9dfd
3 changed files with 29 additions and 4 deletions

View File

@@ -199,6 +199,10 @@ public:
/** Adds the entity to its appropriate chunk, takes ownership of the entity pointer */
void AddEntity(cEntity * a_Entity);
/** Adds the entity to its appropriate chunk, if the entity is not already added.
Takes ownership of the entity pointer */
void AddEntityIfNotPresent(cEntity * a_Entity);
/** Returns true if the entity with specified ID is present in the chunks */
bool HasEntity(int a_EntityID);