Browse Source

Merge pull request #175 from Stee92/master

Fixed a bug in SpriteBatch bounds calculation
Nicolas Cannasse 9 years ago
parent
commit
1e1e633a13
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h2d/SpriteBatch.hx

+ 1 - 1
h2d/SpriteBatch.hx

@@ -174,7 +174,7 @@ class SpriteBatch extends Drawable {
 				y = py * ca + px * sa + e.y;
 				addBounds(relativeTo, out, x, y, 1e-10, 1e-10);
 			} else
-				addBounds(relativeTo, out, e.x + tile.dx, e.y + tile.dy, tile.width, tile.height);
+				addBounds(relativeTo, out, e.x + t.dx, e.y + t.dy, t.width, t.height);
 			e = e.next;
 		}
 	}