From 56902c5a9b6b59341f71098566f2d84a4af4b572 Mon Sep 17 00:00:00 2001 From: tma Date: Fri, 2 Nov 2007 23:36:23 +0000 Subject: * (bug 3393) Blank user names still possible (Michael Jard ) * (bug 3363) Download percentage overflow (Martin Doucha ) * (bug 3390) MSVC project (Julian Priestley ) * For OS X and MinGW ports, don't -I code/SDL when USE_LOCAL_HEADERS is 0 git-svn-id: svn://svn.icculus.org/quake3/trunk@1204 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/tools/asm/q3asm.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'code/tools/asm') diff --git a/code/tools/asm/q3asm.c b/code/tools/asm/q3asm.c index 8926699..769b46d 100644 --- a/code/tools/asm/q3asm.c +++ b/code/tools/asm/q3asm.c @@ -1357,7 +1357,6 @@ void WriteVmFile( void ) { vmHeader_t header; FILE *f; int headerSize; - int i; report( "%i total errors\n", errorCount ); @@ -1403,9 +1402,13 @@ void WriteVmFile( void ) { report( "Writing to %s\n", imageName ); #ifdef Q3_BIG_ENDIAN - // byte swap the header - for ( i = 0 ; i < sizeof( vmHeader_t ) / 4 ; i++ ) { - ((int *)&header)[i] = LittleLong( ((int *)&header)[i] ); + { + int i; + + // byte swap the header + for ( i = 0 ; i < sizeof( vmHeader_t ) / 4 ; i++ ) { + ((int *)&header)[i] = LittleLong( ((int *)&header)[i] ); + } } #endif -- cgit v1.2.3