mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-28 03:57:02 +02:00
Fix for bug introduced in r937.
This commit is contained in:
parent
3e00e68e50
commit
b1c9b17327
@ -807,7 +807,7 @@ SDL_Surface * CMapHandler::terrainRect(int x, int y, int dx, int dy, int level,
|
|||||||
sr.y = sry;
|
sr.y = sry;
|
||||||
sr.h = sr.w = 32;
|
sr.h = sr.w = 32;
|
||||||
|
|
||||||
if(smooth)
|
if(!smooth)
|
||||||
validateRectTerr(&sr, extRect);
|
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])
|
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])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user