Explorar o código

Merge pull request #175 from Stee92/master

Fixed a bug in SpriteBatch bounds calculation
Nicolas Cannasse %!s(int64=9) %!d(string=hai) anos
pai
achega
1e1e633a13
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 				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;
 		}
 		}
 	}
 	}