1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

*small fixes for issues introduced in previous revision (or older, I'm not sure)

This commit is contained in:
mateuszb
2009-01-09 18:12:36 +00:00
parent 22efd5df29
commit 6e53a4562f
3 changed files with 8 additions and 3 deletions

View File

@ -706,8 +706,8 @@ void CTerrainRect::showPath(const SDL_Rect * extRect)
int hvx = (x+arrows->ourImages[pn].bitmap->w)-(pos.x+pos.w),
hvy = (y+arrows->ourImages[pn].bitmap->h)-(pos.y+pos.h);
SDL_Rect prevClip;
SDL_GetClipRect(screen, &prevClip);
SDL_Rect prevClip;
SDL_GetClipRect(screen, &prevClip);
SDL_SetClipRect(screen, extRect); //preventing blitting outside of that rect
if(ADVOPT.smoothMove) //version for smooth hero move, with pos shifts