Skip to content

Commit

Permalink
Update parser.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Jul 5, 2024
1 parent 2fa4c34 commit 82858bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/squaremap/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ export const parseTowns = async(res: SquaremapMarkerset, removeAccents = false)

const points: StrictPoint2D[] = curMarker.points.flat(2)
const { townX, townZ } = points.reduce((acc: TownCoords, p) => {
acc.townX.push(roundToNearest16(p.x as number))
acc.townZ.push(roundToNearest16(p.z as number))
acc.townX.push(roundToNearest16(p.x))
acc.townZ.push(roundToNearest16(p.z))

return acc
}, { townX: [], townZ: [] })
Expand Down

0 comments on commit 82858bb

Please sign in to comment.