]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
msvc shut up
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 27 Apr 2009 10:11:19 +0000 (10:11 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 27 Apr 2009 10:11:19 +0000 (10:11 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@342 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/q3map2/main.c

index 34de3c775cdfff5d13b2200a7fd4ef802e5b95e2..3658516edf5b4794717ab93fc0b22427d0eabbcb 100644 (file)
@@ -137,6 +137,7 @@ static float MiniMapSample(float x, float y)
        float t0, t1;
        float samp;
        bspBrush_t *b;
+       bspBrushSide_t *s;
        int cnt;
 
        org[0] = x;
@@ -156,7 +157,7 @@ static float MiniMapSample(float x, float y)
                        b = &bspBrushes[bi];
 
                        // sort out mins/maxs of the brush
-                       bspBrushSide_t *s = &bspBrushSides[b->firstSide];
+                       s = &bspBrushSides[b->firstSide];
                        if(x < -bspPlanes[s[0].planeNum].dist)
                                continue;
                        if(x > +bspPlanes[s[1].planeNum].dist)
@@ -195,6 +196,7 @@ static void MiniMapRandomlySupersampled(int y)
        float dx   =                   minimap.size[0]      / (float) minimap.width;
        float dy   =                   minimap.size[1]      / (float) minimap.height;
        float uv[2];
+       float thisval;
 
        for(x = 0; x < minimap.width; ++x)
        {
@@ -204,7 +206,7 @@ static void MiniMapRandomlySupersampled(int y)
                for(i = 0; i < minimap.samples; ++i)
                {
                        RandomVector2f(uv);
-                       float thisval = MiniMapSample(
+                       thisval = MiniMapSample(
                                xmin + (uv[0] + 0.5) * dx, /* exaggerated random pattern for better results */
                                ymin + (uv[1] + 0.5) * dy  /* exaggerated random pattern for better results */
                        );