From: divverent Date: Mon, 27 Apr 2009 10:11:19 +0000 (+0000) Subject: msvc shut up X-Git-Tag: svn-r421~78 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2d59dd320c834ce2d1be45e4159aefaeaccf1b76;p=xonotic%2Fnetradiant.git msvc shut up git-svn-id: svn://svn.icculus.org/netradiant/trunk@342 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/tools/quake3/q3map2/main.c b/tools/quake3/q3map2/main.c index 34de3c77..3658516e 100644 --- a/tools/quake3/q3map2/main.c +++ b/tools/quake3/q3map2/main.c @@ -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 */ );