Changeset 175
- Timestamp:
- 09/05/07 12:30:15 (10 months ago)
- Files:
-
- GtkRadiant/trunk/tools/quake3/q3map2/brush.c (modified) (4 diffs)
- GtkRadiant/trunk/tools/quake3/q3map2/facebsp.c (modified) (1 diff)
- GtkRadiant/trunk/tools/quake3/q3map2/mesh.c (modified) (1 diff)
- GtkRadiant/trunk/tools/quake3/q3map2/path_init.c (modified) (1 diff)
- GtkRadiant/trunk/tools/quake3/q3map2/surface.c (modified) (2 diffs)
- GtkRadiant/trunk/tools/quake3/q3map2/writebsp.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
GtkRadiant/trunk/tools/quake3/q3map2/brush.c
r157 r175 79 79 80 80 /* count brushes */ 81 for( brushes; brushes != NULL; brushes = brushes->next )81 for( ; brushes != NULL; brushes = brushes->next ) 82 82 c++; 83 83 return c; … … 123 123 124 124 /* error check */ 125 if( *(( int*) b) == 0xFEFEFEFE )125 if( *((unsigned int*) b) == 0xFEFEFEFE ) 126 126 { 127 127 Sys_FPrintf( SYS_VRB, "WARNING: Attempt to free an already freed brush!\n" ); … … 136 136 /* ydnar: overwrite it */ 137 137 memset( b, 0xFE, (int) &(((brush_t*) 0)->sides[ b->numsides ]) ); 138 *(( int*) b) = 0xFEFEFEFE;138 *((unsigned int*) b) = 0xFEFEFEFE; 139 139 140 140 /* free it */ … … 157 157 158 158 /* walk brush list */ 159 for( brushes; brushes != NULL; brushes = next )159 for( ; brushes != NULL; brushes = next ) 160 160 { 161 161 next = brushes->next; GtkRadiant/trunk/tools/quake3/q3map2/facebsp.c
r1 r175 181 181 182 182 c = 0; 183 for( list; list != NULL; list = list->next )183 for( ; list != NULL; list = list->next ) 184 184 c++; 185 185 return c; GtkRadiant/trunk/tools/quake3/q3map2/mesh.c
r1 r175 564 564 565 565 /* keep chopping */ 566 for( iterations; iterations > 0; iterations-- )566 for( ; iterations > 0; iterations-- ) 567 567 { 568 568 /* horizontal subdivisions */ GtkRadiant/trunk/tools/quake3/q3map2/path_init.c
r1 r175 384 384 for( i = 0, j = 0, k = 0; i < *argc && j < *argc; i++, j++ ) 385 385 { 386 for( j; j < *argc && argv[ j ] == NULL; j++ );386 for( ; j < *argc && argv[ j ] == NULL; j++ ); 387 387 argv[ i ] = argv[ j ]; 388 388 if( argv[ i ] != NULL ) GtkRadiant/trunk/tools/quake3/q3map2/surface.c
r1 r175 305 305 306 306 /* walk the surface list again until a proper surface is found */ 307 for( j; j < numMapDrawSurfs; j++ )307 for( ; j < numMapDrawSurfs; j++ ) 308 308 { 309 309 /* get in surface */ … … 485 485 486 486 /* walk the list of surfaces */ 487 for( numSurfs; numSurfs > 0; numSurfs--, ds++ )487 for( ; numSurfs > 0; numSurfs--, ds++ ) 488 488 { 489 489 /* ignore bogus (or flare) surfaces */ GtkRadiant/trunk/tools/quake3/q3map2/writebsp.c
r1 r175 137 137 brush_t *b; 138 138 drawSurfRef_t *dsr; 139 int i = 0;140 139 141 140
