From: divverent Date: Mon, 27 Apr 2009 09:16:40 +0000 (+0000) Subject: fix a 0.5 error X-Git-Tag: svn-r421~80 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c67a77421cb066b0fd69d900b5d24e2b3f549780;p=xonotic%2Fnetradiant.git fix a 0.5 error git-svn-id: svn://svn.icculus.org/netradiant/trunk@340 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/tools/quake3/q3map2/main.c b/tools/quake3/q3map2/main.c index 09e73bd3..c00cdfbb 100644 --- a/tools/quake3/q3map2/main.c +++ b/tools/quake3/q3map2/main.c @@ -245,11 +245,11 @@ static void MiniMapNoSupersampling(int y) { int x; float *p = &minimap.data1f[y * minimap.width]; - float ymin = minimap.mins[1] + minimap.size[1] * (y / (float) minimap.height); + float ymin = minimap.mins[1] + minimap.size[1] * ((y + 0.5) / (float) minimap.height); for(x = 0; x < minimap.width; ++x) { - float xmin = minimap.mins[0] + minimap.size[0] * (x / (float) minimap.width); + float xmin = minimap.mins[0] + minimap.size[0] * ((x + 0.5) / (float) minimap.width); *p++ = MiniMapSample(xmin, ymin) / minimap.size[2]; } }