1
0
Fork 0

Chunk: Make StayCount/AlwaysTicked unsigned

This commit is contained in:
Tiger Wang 2020-08-28 21:34:23 +01:00
parent 7023548de0
commit 167247328a
1 changed files with 2 additions and 3 deletions

View File

@ -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);