]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
fix two msvc compile errors
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 13 Apr 2009 19:51:54 +0000 (19:51 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 13 Apr 2009 19:51:54 +0000 (19:51 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@319 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/q3map2/facebsp.c
tools/quake3/q3map2/map.c

index 702765ade6b81bd4894ddfb1b5ed6622047818f2..9291f5649fc8dc63decd9e77f6e7293b2d60f815 100644 (file)
@@ -244,6 +244,7 @@ void BuildFaceTree_r( node_t *node, face_t *list )
        winding_t       *frontWinding, *backWinding;
        int                     i;
        int                     splitPlaneNum, compileFlags;
+       qboolean isstruct = qfalse;
        
        
        /* count faces left */
@@ -269,7 +270,6 @@ void BuildFaceTree_r( node_t *node, face_t *list )
        childLists[0] = NULL;
        childLists[1] = NULL;
 
-       qboolean isstruct = 0;
        for( split = list; split; split = next )
        {
                /* set next */
index 1440131e9d7e3b8ed0db720a6787ada549ed6e4b..9b7ba71a55c1f33a472b122302f38d6eefb9fc73 100644 (file)
@@ -600,6 +600,7 @@ and links it to the current entity
 static void MergeOrigin(entity_t *ent, vec3_t origin)
 {
        vec3_t adjustment;
+       char string[128];
 
        /* we have not parsed the brush completely yet... */
        GetVectorForKey( ent, "origin", ent->origin );
@@ -608,7 +609,6 @@ static void MergeOrigin(entity_t *ent, vec3_t origin)
        VectorAdd(adjustment, ent->origin, ent->origin);
        VectorCopy(origin, ent->originbrush_origin);
 
-       char string[128];
        sprintf(string, "%f %f %f", ent->origin[0], ent->origin[1], ent->origin[2]);
        SetKeyValue(ent, "origin", string);
 }