Skip to content

Commit

Permalink
20.0.0-alpha.0
Browse files Browse the repository at this point in the history
  • Loading branch information
meszaros-lajos-gyorgy committed Jun 2, 2024
1 parent 6fb2f5b commit 6e4f2b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arx-level-generator",
"version": "19.0.0",
"version": "20.0.0-alpha.0",
"description": "A tool for creating Arx Fatalis maps",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/prefabs/rooms/Rooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ function union(map1: ArxMap, map2: ArxMap) {
// TODO: this removes both polygons when they overlap, which is ideal for walls
// but not for ceilings and floors

const map1BB = map1.getBoundingBox()
const map2BB = map2.getBoundingBox()
const map1BB = map1.polygons.getBoundingBox()
const map2BB = map2.polygons.getBoundingBox()

if (!map1BB.intersectsBox(map2BB)) {
return
Expand Down

0 comments on commit 6e4f2b8

Please sign in to comment.