2
0
Эх сурвалжийг харах

Fixed a bug where bounds of a non scaled/rotated SpriteBatch got calculated wrong.

Stefan Langeder 9 жил өмнө
parent
commit
f4e3ac5c2f

+ 1 - 1
h2d/SpriteBatch.hx

@@ -174,7 +174,7 @@ class SpriteBatch extends Drawable {
 				y = py * ca + px * sa + e.y;
 				y = py * ca + px * sa + e.y;
 				addBounds(relativeTo, out, x, y, 1e-10, 1e-10);
 				addBounds(relativeTo, out, x, y, 1e-10, 1e-10);
 			} else
 			} 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;
 			e = e.next;
 		}
 		}
 	}
 	}