From 0c1232ae3bfa2eeebd53699eca1d800254334add Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Mon, 24 Aug 2015 02:01:46 +1000 Subject: [PATCH] Fixed a graphical bug --- graphics/sprite_sheet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/sprite_sheet.cpp b/graphics/sprite_sheet.cpp index b0db04d..3d61f62 100644 --- a/graphics/sprite_sheet.cpp +++ b/graphics/sprite_sheet.cpp @@ -85,7 +85,7 @@ void SpriteSheet::Update(double delta) { } //modify area drawn clip.x = indexX * clip.w; - clip.y = indexX * clip.y; + clip.y = indexY * clip.h; } SDL_Texture* SpriteSheet::Load(SDL_Renderer* r, std::string fname, Uint16 cx, Uint16 cy) {