mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-09-30 03:30:06 +00:00
Replace inPopulatedChunks with player counter for NPCs
This commit is contained in:
@@ -11,6 +11,8 @@ public:
|
||||
ChunkPos chunkPos;
|
||||
std::set<Chunk*>* viewableChunks;
|
||||
|
||||
int playersInView;
|
||||
|
||||
BaseNPC() {};
|
||||
BaseNPC(int x, int y, int z, int angle, uint64_t iID, int type, int id) {
|
||||
appearanceData.iX = x;
|
||||
@@ -27,6 +29,7 @@ public:
|
||||
|
||||
chunkPos = std::make_tuple(0, 0, 0);
|
||||
viewableChunks = new std::set<Chunk*>();
|
||||
playersInView = 0;
|
||||
};
|
||||
BaseNPC(int x, int y, int z, int angle, uint64_t iID, int type, int id, NPCClass classType) : BaseNPC(x, y, z, angle, iID, type, id) {
|
||||
npcClass = classType;
|
||||
|
Reference in New Issue
Block a user