diff options
Diffstat (limited to 'plugins/ruby/building.rb')
| -rw-r--r-- | plugins/ruby/building.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ruby/building.rb b/plugins/ruby/building.rb index 0a48386c..ad2acb15 100644 --- a/plugins/ruby/building.rb +++ b/plugins/ruby/building.rb @@ -225,7 +225,7 @@ module DFHack def building_linkrooms(bld) world.buildings.other[:ANY_FREE].each { |ob| next if !ob.is_room or ob.z != bld.z - next if !ob.room.extents or !ob.isExtentShaped or ob.room.extents[ob.room.width*(bld.y1-ob.room.y)+(bld.x1-ob.room.x)] == 0 + next if !ob.room.extents or ob.room.extents[ob.room.width*(bld.y1-ob.room.y)+(bld.x1-ob.room.x)] == 0 ui.equipment.update.buildings = true ob.children << bld bld.parents << ob |
