Fixed a mistyped variable name
This commit is contained in:
@@ -110,7 +110,7 @@ void TileSheet::DrawRegionTo(SDL_Renderer* const renderer, Region* const region,
|
|||||||
|
|
||||||
//set the sclip
|
//set the sclip
|
||||||
sclip.x = (tile-1) % countX * clip.h;
|
sclip.x = (tile-1) % countX * clip.h;
|
||||||
sclip.x = (tile-1) / countX * clip.w;
|
sclip.y = (tile-1) / countX * clip.w;
|
||||||
|
|
||||||
//set the dclip
|
//set the dclip
|
||||||
dclip.x = ((region->x + i) * clip.w - camX) * scaleX;
|
dclip.x = ((region->x + i) * clip.w - camX) * scaleX;
|
||||||
|
|||||||
Reference in New Issue
Block a user