From 384ba1881237bbefd03488d7de3e4eaae80d9d27 Mon Sep 17 00:00:00 2001 From: Max Luchterhand <52720531+maxluchterhand1@users.noreply.github.com> Date: Wed, 18 Mar 2020 17:17:59 +0000 Subject: Fixed unloading of chunks that contain player entities (#4508) Co-authored-by: peterbell10 Co-authored-by: mluchterhand --- src/Chunk.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Chunk.h') diff --git a/src/Chunk.h b/src/Chunk.h index f6e38dc81..9aa963fae 100644 --- a/src/Chunk.h +++ b/src/Chunk.h @@ -683,6 +683,9 @@ private: /** Called by Tick() when an entity moves out of this chunk into a neighbor; moves the entity and sends spawn / despawn packet to clients */ void MoveEntityToNewChunk(OwnedEntity a_Entity); + + /** Check m_Entities for cPlayer objects. */ + bool HasPlayerEntities(); }; typedef cChunk * cChunkPtr; -- cgit v1.2.3