We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1747cb6 + e52f173 commit d9e16adCopy full SHA for d9e16ad
src/tilemaps/components/WorldToTileXY.js
@@ -25,7 +25,7 @@ var Vector2 = require('../../math/Vector2');
25
*/
26
var WorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer)
27
{
28
- if (!snapToFloor) { snapToFloor = true; }
+ if (snapToFloor === undefined) { snapToFloor = true; }
29
if (!point) { point = new Vector2(); }
30
31
var tileWidth = layer.baseTileWidth;
0 commit comments