diff --git a/src/Chunking.cpp b/src/Chunking.cpp index abed4d14..b4d2fd64 100644 --- a/src/Chunking.cpp +++ b/src/Chunking.cpp @@ -179,32 +179,32 @@ void Chunking::addEntityToChunks(std::set chnks, const EntityRef ref) { sShinyAppearanceData eggData; sTransportationAppearanceData busData; switch(otherRef.kind) { - case EntityKind::PLAYER: - pcData = dynamic_cast(other)->getAppearanceData(); - bufferAppearanceData(pcAppearances, pcData); - break; - case EntityKind::SIMPLE_NPC: - npcData = dynamic_cast(other)->getAppearanceData(); - bufferAppearanceData(npcAppearances, npcData); - break; - case EntityKind::COMBAT_NPC: - npcData = dynamic_cast(other)->getAppearanceData(); - bufferAppearanceData(npcAppearances, npcData); - break; - case EntityKind::MOB: - npcData = dynamic_cast(other)->getAppearanceData(); - bufferAppearanceData(npcAppearances, npcData); - break; - case EntityKind::EGG: - eggData = dynamic_cast(other)->getShinyAppearanceData(); - bufferAppearanceData(shinyAppearances, eggData); - break; - case EntityKind::BUS: - busData = dynamic_cast(other)->getTransportationAppearanceData(); - bufferAppearanceData(transportationAppearances, busData); - break; - default: - break; + case EntityKind::PLAYER: + pcData = dynamic_cast(other)->getAppearanceData(); + bufferAppearanceData(pcAppearances, pcData); + break; + case EntityKind::SIMPLE_NPC: + npcData = dynamic_cast(other)->getAppearanceData(); + bufferAppearanceData(npcAppearances, npcData); + break; + case EntityKind::COMBAT_NPC: + npcData = dynamic_cast(other)->getAppearanceData(); + bufferAppearanceData(npcAppearances, npcData); + break; + case EntityKind::MOB: + npcData = dynamic_cast(other)->getAppearanceData(); + bufferAppearanceData(npcAppearances, npcData); + break; + case EntityKind::EGG: + eggData = dynamic_cast(other)->getShinyAppearanceData(); + bufferAppearanceData(shinyAppearances, eggData); + break; + case EntityKind::BUS: + busData = dynamic_cast(other)->getTransportationAppearanceData(); + bufferAppearanceData(transportationAppearances, busData); + break; + default: + break; } } @@ -253,26 +253,26 @@ void Chunking::removeEntityFromChunks(std::set chnks, const EntityRef re if (ref.kind == EntityKind::PLAYER && other->isExtant()) { int32_t id; switch(otherRef.kind) { - case EntityKind::PLAYER: - id = dynamic_cast(other)->iID; - bufferIdForDisappearance(pcDisappearances, id); - break; - case EntityKind::SIMPLE_NPC: - case EntityKind::COMBAT_NPC: - case EntityKind::MOB: - id = dynamic_cast(other)->id; - bufferIdForDisappearance(npcDisappearances, id); - break; - case EntityKind::EGG: - id = dynamic_cast(other)->id; - bufferIdForDisappearance(shinyDisappearances, id); - break; - case EntityKind::BUS: - id = dynamic_cast(other)->id; - bufferIdForDisappearance(transportationDisappearances, id); - break; - default: - break; + case EntityKind::PLAYER: + id = dynamic_cast(other)->iID; + bufferIdForDisappearance(pcDisappearances, id); + break; + case EntityKind::SIMPLE_NPC: + case EntityKind::COMBAT_NPC: + case EntityKind::MOB: + id = dynamic_cast(other)->id; + bufferIdForDisappearance(npcDisappearances, id); + break; + case EntityKind::EGG: + id = dynamic_cast(other)->id; + bufferIdForDisappearance(shinyDisappearances, id); + break; + case EntityKind::BUS: + id = dynamic_cast(other)->id; + bufferIdForDisappearance(transportationDisappearances, id); + break; + default: + break; } }