Skip to content

Commit

Permalink
Forgot a division in generateLights -> fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
meszaros-lajos-gyorgy committed Feb 27, 2022
1 parent 5f87864 commit 1681012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const generateLights = (mapData) => {

const p = mapData.fts.polygons.reduce((acc, { config }, idx) => {
const cellX = Math.floor(config.minX / 100);
const cellZ = Math.floor(config.minZ) + 1;
const cellZ = Math.floor(config.minZ / 100) + 1;

if (!acc[`${cellZ}-${cellX}`]) {
acc[`${cellZ}-${cellX}`] = [idx];
Expand Down

0 comments on commit 1681012

Please sign in to comment.