Skip to content

Commit

Permalink
fix typo in variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
meszaros-lajos-gyorgy committed Dec 12, 2022
1 parent f1073f5 commit f3c3c40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fts/FTS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class FTS {
static save(json: ArxFTS) {
const sceneHeader = SceneHeader.accumulateFrom(json)

const recominedCells = json.cells.map((cell): ArxCell => {
const recombinedCells = json.cells.map((cell): ArxCell => {
return {
...cell,
polygons: [],
Expand All @@ -74,11 +74,11 @@ export class FTS {
const [cellX, cellY] = getCellCoords(polygon.vertices)

const cellIndex = cellY * MAP_WIDTH_IN_CELLS + cellX
recominedCells[cellIndex].polygons.push(polygon)
recombinedCells[cellIndex].polygons.push(polygon)
})

const textureContainers = Buffer.concat(json.textureContainers.map(TextureContainer.accumulateFrom))
const cells = Buffer.concat(recominedCells.map(Cell.accumulateFrom))
const cells = Buffer.concat(recombinedCells.map(Cell.accumulateFrom))
const anchors = Buffer.concat(json.anchors.map(Anchor.accumulateFrom))
const portals = Buffer.concat(json.portals.map(Portal.accumulateFrom))
const rooms = Buffer.concat(json.rooms.map(Room.accumulateFrom))
Expand Down

0 comments on commit f3c3c40

Please sign in to comment.