EntityType -> EntityKind

This commit is contained in:
gsemaj
2022-04-13 15:56:12 -04:00
parent 595dcda1b7
commit f6094fde58
16 changed files with 78 additions and 80 deletions

View File

@@ -353,7 +353,7 @@ void PlayerManager::sendToViewable(CNSocket* sock, void* buf, uint32_t type, siz
for (auto it = plr->viewableChunks.begin(); it != plr->viewableChunks.end(); it++) {
Chunk* chunk = *it;
for (const EntityRef& ref : chunk->entities) {
if (ref.type != EntityType::PLAYER || ref.sock == sock)
if (ref.kind != EntityKind::PLAYER || ref.sock == sock)
continue;
ref.sock->sendPacket(buf, type, size);