merge branch work back into trunk
[xonotic/netradiant.git] / tools / quake3 / q3map2 / writebsp.c
index fdeca2c2de88d531e7d31be2a663f52b0b8fc7cc..4cdd3a99e7b7c31a3c7c1d982cfbf7a14db73cd0 100644 (file)
@@ -1,6 +1,6 @@
 /* -------------------------------------------------------------------------------
 
-Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+Copyright (C) 1999-2007 id Software, Inc. and contributors.
 For a list of contributors, see the accompanying CONTRIBUTORS file.
 
 This file is part of GtkRadiant.
@@ -136,7 +136,6 @@ void EmitLeaf( node_t *node )
        bspLeaf_t               *leaf_p;
        brush_t                 *b;
        drawSurfRef_t   *dsr;
-       int                             i = 0;
 
        
        /* check limits */
@@ -158,7 +157,7 @@ void EmitLeaf( node_t *node )
        for( b = node->brushlist; b; b = b->next )
        {
                /* something is corrupting brushes */
-               if( (int) b < 256 )
+               if( (size_t) b < 256 )
                {
                        Sys_Printf( "WARNING: Node brush list corrupted (0x%08X)\n", b );
                        break;
@@ -401,6 +400,8 @@ void EndBSPFile( void )
        char    path[ 1024 ];
        
 
+       Sys_FPrintf( SYS_VRB, "--- EndBSPFile ---\n" );
+
        EmitPlanes();
        
        numBSPEntities = numEntities;