Changeset 3814
 Timestamp:
 Feb 15, 2015, 12:57:12 AM (7 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/lol/algorithm/aabb_tree.h
r3809 r3814 150 150 { 151 151 m_parent = parent; 152 for ( int i = 0; i < child_nb; i++)152 for (size_t i = 0; i < child_nb; ++i) 153 153 m_children[i] = 0; 154 154 } … … 190 190 { 191 191 int empty_children = 0; 192 for ( int i = 0; i < child_nb; i++)192 for (size_t i = 0; i < child_nb; ++i) 193 193 { 194 194 bool child_empty = false; … … 199 199 if (empty_children == 4 && leaf != 0) 200 200 { 201 for ( int i = 0; i < child_nb; i++)201 for (size_t i = 0; i < child_nb; ++i) 202 202 { 203 203 int old_leaf = m_tree[leaf].m_children[i]; … … 262 262 { 263 263 NodeLeaf& node = m_tree[leaf]; 264 for ( int i = 0; i < child_nb; i++)264 for (size_t i = 0; i < child_nb; ++i) 265 265 { 266 266 if (node.m_children[i] != 0) … … 285 285 { 286 286 bool found_child = false; 287 for ( int i = 0; i < child_nb; i++)287 for (size_t i = 0; i < child_nb; ++i) 288 288 { 289 289 TB child_bb = GetSubAABB(leaf_bb, i); … … 305 305 m_tree[leaf].m_elements.Empty(); 306 306 //Add children 307 for ( int j = 0; j < child_nb; j++)307 for (size_t j = 0; j < child_nb; ++j) 308 308 m_tree[leaf].m_children[j] = AddLeaf(leaf); 309 309 //Rerun extracted elements
Note: See TracChangeset
for help on using the changeset viewer.