summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-06-10 18:25:53 +0200
committermadmaxoft <github@xoft.cz>2014-06-10 18:25:53 +0200
commit366ecf9dfd38d612c0685f3fbf8b3a95b9900697 (patch)
tree707394377759c40768cb2ac609c082d9d5cadce1 /src/ChunkMap.h
parentFixed gcc compilation. (diff)
downloadcuberite-366ecf9dfd38d612c0685f3fbf8b3a95b9900697.tar
cuberite-366ecf9dfd38d612c0685f3fbf8b3a95b9900697.tar.gz
cuberite-366ecf9dfd38d612c0685f3fbf8b3a95b9900697.tar.bz2
cuberite-366ecf9dfd38d612c0685f3fbf8b3a95b9900697.tar.lz
cuberite-366ecf9dfd38d612c0685f3fbf8b3a95b9900697.tar.xz
cuberite-366ecf9dfd38d612c0685f3fbf8b3a95b9900697.tar.zst
cuberite-366ecf9dfd38d612c0685f3fbf8b3a95b9900697.zip
Diffstat (limited to 'src/ChunkMap.h')
-rw-r--r--src/ChunkMap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ChunkMap.h b/src/ChunkMap.h
index 8786d7016..7e85bb6f1 100644
--- a/src/ChunkMap.h
+++ b/src/ChunkMap.h
@@ -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);