From 3f338cc1c328c7280957583b50598292cd8fb64b Mon Sep 17 00:00:00 2001 From: maximius Date: Sat, 17 Oct 2009 16:20:24 -0700 Subject: *Massive cleanup redux. --HG-- branch : trunk --- src/shared/vmap/TileAssembler.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'src/shared/vmap/TileAssembler.cpp') diff --git a/src/shared/vmap/TileAssembler.cpp b/src/shared/vmap/TileAssembler.cpp index 75997a847a2..5a9b35bb3a1 100644 --- a/src/shared/vmap/TileAssembler.cpp +++ b/src/shared/vmap/TileAssembler.cpp @@ -166,25 +166,25 @@ namespace VMAP return false; } - for(int i=0; i mc; @@ -423,7 +423,7 @@ namespace VMAP READ_OR_RETURN(&groups, sizeof(G3D::uint32)); - for(int g=0;g<(int)groups;g++) + for (int g=0; g<(int)groups; g++) { // group MUST NOT have more then 65536 indexes !! Array will have a problem with that !! (strange ...) Array tempIndexArray; @@ -447,7 +447,7 @@ namespace VMAP CMP_OR_RETURN(blockId, "GRP "); READ_OR_RETURN(&blocksize, sizeof(int)); READ_OR_RETURN(&branches, sizeof(G3D::uint32)); - for(int b=0;b<(int)branches; b++) + for (int b=0; b<(int)branches; b++) { G3D::uint32 indexes; // indexes for each branch (not used jet) @@ -464,7 +464,7 @@ namespace VMAP { unsigned short *indexarray = new unsigned short[nindexes*sizeof(unsigned short)]; READ_OR_RETURN(indexarray, nindexes*sizeof(unsigned short)); - for(int i=0;i<(int)nindexes; i++) + for (int i=0; i<(int)nindexes; i++) { unsigned short val = indexarray[i]; tempIndexArray.append(val); @@ -504,8 +504,7 @@ namespace VMAP fseek(rf, blocksize, SEEK_CUR); } - - for(unsigned int i=0, indexNo=0; indexNo