Skip to content

Commit

Permalink
Merge pull request #173 from ARedSnail/carver
Browse files Browse the repository at this point in the history
fixed Carver2D logic
  • Loading branch information
BenjaTK authored Oct 19, 2024
2 parents e6ec383 + f588ded commit 23561ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/gaea/modifiers/2D/carver.gd
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ func _apply_area(area: Rect2i, grid: GaeaGrid, _generator: GaeaGenerator) -> voi
func _is_out_of_bounds(cell: Vector2i) -> bool:
if not bounds_enabled:
return false
return cell.x > bounds_max.x or cell.y > bounds_max.y or cell.x < bounds_min.x or cell.y < bounds_min.y
#return (cell.x > bounds_max.x) or (cell.y > bounds_max.y) or (cell.x < bounds_min.x) or (cell.y < bounds_min.y)
return (cell.x > bounds_max.x) or (cell.y < bounds_max.y) or (cell.x < bounds_min.x) or (cell.y > bounds_min.y)

0 comments on commit 23561ce

Please sign in to comment.