1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-28 23:06:24 +02:00

Fix for bug introduced in r937.

This commit is contained in:
Frank Zago 2009-06-06 19:47:25 +00:00
parent 3e00e68e50
commit b1c9b17327

View File

@ -807,7 +807,7 @@ SDL_Surface * CMapHandler::terrainRect(int x, int y, int dx, int dy, int level,
sr.y = sry;
sr.h = sr.w = 32;
if(smooth)
if(!smooth)
validateRectTerr(&sr, extRect);
if(bx+x>=0 && by+y>=0 && bx+x<CGI->mh->map->width && by+y<CGI->mh->map->height && !(*visibilityMap)[bx+x][by+y][level])