ruby: fix building linking

develop
jj 2012-09-20 00:33:22 +02:00
parent b6d9863172
commit 2d5942d5d7
1 changed files with 1 additions and 1 deletions

@ -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