mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
fix a 0.5 error
git-svn-id: svn://svn.icculus.org/netradiant/trunk@340 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
parent
a04a5b5fda
commit
ac7d31060b
1 changed files with 2 additions and 2 deletions
|
@ -273,11 +273,11 @@ static void MiniMapNoSupersampling(int y)
|
||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
float *p = &minimap.data1f[y * minimap.width];
|
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)
|
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];
|
*p++ = MiniMapSample(xmin, ymin) / minimap.size[2];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue