html-next/smoke-and-mirrors

Geography.getZones() incorrectly zones divs of same location and size

kylemellander opened this issue · 1 comments

When 2 planets have the same dimensions and locations, getZones fails:

ie.
planetA = planetB;
var results = planetA.getZones(planetB);
// expected result is {zoneX: 0, zoneY: 0, ...}
but result is {zoneX: 1, zoneY: 1, ...}

this bug is from lines 85 and 86 of addon/models/geography.js

because distanceX === planet.height

Resolved by 64557c6