Skip to content

Commit 18b3a3c

Browse files
author
nextht
committed
Remove useless initilization for tw and th code
tw and th have been initialized twice, the first time is useless.
1 parent aa80074 commit 18b3a3c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/tilemap/TilemapLayer.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,9 +534,6 @@ Phaser.TilemapLayer.prototype.getTiles = function (x, y, width, height, collides
534534
x = this._fixX(x);
535535
y = this._fixY(y);
536536

537-
var tw = this._mc.tileWidth;
538-
var th = this._mc.tileHeight;
539-
540537
// Convert the pixel values into tile coordinates
541538
var tx = Math.floor(x / this._mc.cw);
542539
var ty = Math.floor(y / this._mc.ch);

0 commit comments

Comments
 (0)