]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/bspfile_abstract.c
rebuilt gtk binary dependencies file
[xonotic/netradiant.git] / tools / quake3 / q3map2 / bspfile_abstract.c
index ae2fec3091c7bb89916f85d12d03d3d485c6e371..31b6f171bd4a425d9fe586ada8b2e122ed62ab5b 100644 (file)
@@ -1,4 +1,5 @@
-/*
+/* -------------------------------------------------------------------------------
+
 Copyright (C) 1999-2007 id Software, Inc. and contributors.
 For a list of contributors, see the accompanying CONTRIBUTORS file.
 
@@ -239,6 +240,24 @@ void SwapBSPFile( void )
                bspFogs[ i ].brushNum = LittleLong( bspFogs[ i ].brushNum );
                bspFogs[ i ].visibleSide = LittleLong( bspFogs[ i ].visibleSide );
        }
+
+       /* advertisements */
+       for( i = 0; i < numBSPAds; i++ )
+       {
+               bspAds[ i ].cellId = LittleLong( bspAds[ i ].cellId );
+               bspAds[ i ].normal[ 0 ] = LittleFloat( bspAds[ i ].normal[ 0 ] );
+               bspAds[ i ].normal[ 1 ] = LittleFloat( bspAds[ i ].normal[ 1 ] );
+               bspAds[ i ].normal[ 2 ] = LittleFloat( bspAds[ i ].normal[ 2 ] );
+
+               for( j = 0; j < 4; j++ ) 
+               {
+                       bspAds[ i ].rect[j][ 0 ] = LittleFloat( bspAds[ i ].rect[j][ 0 ] );
+                       bspAds[ i ].rect[j][ 1 ] = LittleFloat( bspAds[ i ].rect[j][ 1 ] );
+                       bspAds[ i ].rect[j][ 2 ] = LittleFloat( bspAds[ i ].rect[j][ 2 ] );
+               }
+
+               //bspAds[ i ].model[ MAX_QPATH ];
+       }
 }
 
 
@@ -435,7 +454,7 @@ void PrintBSPFileSizes( void )
        Sys_Printf( "\n");
        
        Sys_Printf( "%9d lightmaps     %9d\n",
-               numBSPLightBytes / (LIGHTMAP_WIDTH * LIGHTMAP_HEIGHT * 3), numBSPLightBytes );
+               numBSPLightBytes / (game->lightmapSize * game->lightmapSize * 3), numBSPLightBytes );
        Sys_Printf( "%9d lightgrid     %9d *\n",
                numBSPGridPoints, (int) (numBSPGridPoints * sizeof( *bspGridPoints )) );
        Sys_Printf( "          visibility    %9d\n",