calclight vertical blendmap fix

master
Lee Salzman 2013-05-13 18:07:53 +03:00
parent d3f63d5f68
commit f19755574b
1 changed files with 2 additions and 0 deletions

View File

@ -484,6 +484,8 @@ static void calcsurfaces(cube &c, const ivec &co, int size, int usefacemask, int
x2 = max(x2, int(v.x));
y2 = max(y2, int(v.y));
}
x2 = max(x2, x1+1);
y2 = max(y2, y1+1);
x1 = (x1>>3) + (co.x&~0xFFF);
y1 = (y1>>3) + (co.y&~0xFFF);
x2 = ((x2+7)>>3) + (co.x&~0xFFF);