Skip to content

Commit

Permalink
Get Center
Browse files Browse the repository at this point in the history
  • Loading branch information
Azrun committed Oct 31, 2023
1 parent 9c61936 commit d3c5366
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/worldgen/mapgen/bsp_tree.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
var/datum/bsp_node/left
var/datum/bsp_node/right

proc/get_center()
return list(x+width/2, y+height/2)

/datum/bsp_tree
/// Minimum width of node in tree
var/min_width
Expand Down

0 comments on commit d3c5366

Please sign in to comment.