mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 01:38:23 +00:00
Fix Issue #6301 causing tilemap collisions to fail.
This commit is contained in:
parent
1747cb67be
commit
e52f1738ef
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ var Vector2 = require('../../math/Vector2');
|
|||
*/
|
||||
var WorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer)
|
||||
{
|
||||
if (!snapToFloor) { snapToFloor = true; }
|
||||
if (snapToFloor === undefined) { snapToFloor = true; }
|
||||
if (!point) { point = new Vector2(); }
|
||||
|
||||
var tileWidth = layer.baseTileWidth;
|
||||
|
|
Loading…
Reference in a new issue