From 167247328a663cba69d752cf1042028becb6266c Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 28 Aug 2020 21:34:23 +0100 Subject: Chunk: Make StayCount/AlwaysTicked unsigned --- src/Chunk.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Chunk.h b/src/Chunk.h index 855ddfc66..47eb4628d 100644 --- a/src/Chunk.h +++ b/src/Chunk.h @@ -586,7 +586,7 @@ private: cBlockEntities m_BlockEntities; /** Number of times the chunk has been requested to stay (by various cChunkStay objects); if zero, the chunk can be unloaded */ - int m_StayCount; + unsigned m_StayCount; int m_PosX, m_PosZ; cWorld * m_World; @@ -616,8 +616,7 @@ private: /** If greater than zero, the chunk is ticked even if it has no clients. Manipulated by the SetAlwaysTicked() function, allows for nested calls of the function. This is the support for plugin-accessible chunk tick forcing. */ - int m_AlwaysTicked; - + unsigned m_AlwaysTicked; // Pick up a random block of this chunk void GetRandomBlockCoords(int & a_X, int & a_Y, int & a_Z); -- cgit v1.2.3