trethaller 6 年之前
父节点
当前提交
5fcbfe6d2d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h2d/Tile.hx

+ 1 - 1
h2d/Tile.hx

@@ -27,7 +27,7 @@ class Tile {
 	inline function get_iwidth() return Math.ceil(width + x) - ix;
 
 	public var iheight(get,never) : Int;
-	inline function get_iheight() return Std.ceil(height + y) - iy;
+	inline function get_iheight() return Math.ceil(height + y) - iy;
 
 	function new(tex : h3d.mat.Texture, x : Float, y : Float, w : Float, h : Float, dx : Float=0, dy : Float=0) {
 		this.innerTex = tex;