From 171ccf2adcaa862fbb8e70ef5a94d488642d2f46 Mon Sep 17 00:00:00 2001 From: samuncle Date: Thu, 28 Feb 2019 01:35:14 +0100 Subject: [PATCH] remove useless print --- src/graphics/lod_node.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/graphics/lod_node.cpp b/src/graphics/lod_node.cpp index 7be6adb1d..cf904c30c 100644 --- a/src/graphics/lod_node.cpp +++ b/src/graphics/lod_node.cpp @@ -177,7 +177,6 @@ void LODNode::OnRegisterSceneNode() m_nodes[0]->getType() == scene::ESNT_ANIMATED_MESH) && now > m_last_tick) { - printf("Hi, we are in level mode one :p\n\n"); if (m_previous_visibility == WAS_HIDDEN && shown) { scene::IMesh* mesh; @@ -271,11 +270,9 @@ void LODNode::autoComputeLevel() int step = (int) max_draw / m_detail.size(); // Then we recompute the level of detail culling distance - int cursor = 0; - while(cursor < m_detail.size()) + for(int i = 0; i < m_detail.size(); i++) { - m_detail[cursor] = step * step * (cursor + 1); - cursor++; + m_detail[i] = step * step * (i + 1); } }