From 92671f6ea7d132d43819ba818d03603cb9fa74e7 Mon Sep 17 00:00:00 2001 From: "Zhang, Junming" Date: Wed, 17 May 2017 09:09:27 +0800 Subject: [PATCH] Fix bug: y2 is wrong --- src/js/td-obj-map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/td-obj-map.js b/src/js/td-obj-map.js index 0f3206f..5344d60 100644 --- a/src/js/td-obj-map.js +++ b/src/js/td-obj-map.js @@ -25,7 +25,7 @@ _TD.a.push(function (TD) { this.width = this.grid_x * TD.grid_size; this.height = this.grid_y * TD.grid_size; this.x2 = this.x + this.width; - this.y2 = this.y + this.width; + this.y2 = this.y + this.height; this.grids = []; this.entrance = this.exit = null; this.buildings = [];