History

some cleanup pre CR

ZappoMan committed 13 years ago

Commit f5808f41 parent 9fb57fe2 files · +8 −8Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 2 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+2−2
@@ -212,7 +212,7 @@ int VoxelSystem::newTreeToArrays(VoxelNode* node) { · 211 unmodified lines
212212 }
213213 node->setShouldRender(shouldRender);
214214 // let children figure out their renderness
215− for (int i = 0; i < 8; i++) {
215+ for (int i = 0; i < NUMBER_OF_CHILDREN; i++) {
216216 if (node->getChildAtIndex(i)) {
217217 voxelsUpdated += newTreeToArrays(node->getChildAtIndex(i));
218218 }
@@ -595,7 +595,7 @@ bool VoxelSystem::removeOutOfViewOperation(VoxelNode* node, void* extraData) { · 376 unmodified lines
595595 VoxelSystem* thisVoxelSystem = (VoxelSystem*) extraData;
596596 _nodeCount++;
597597 // Need to operate on our child nodes, so we can remove them
598− for (int i = 0; i < 8; i++) {
598+ for (int i = 0; i < NUMBER_OF_CHILDREN; i++) {
599599 VoxelNode* childNode = node->getChildAtIndex(i);
600600 if (childNode && !childNode->isInView(*thisVoxelSystem->_viewFrustum)) {
601601 node->removeChildAtIndex(i);