ruby: fix create building map occupancy

develop
jj 2012-09-01 03:35:47 +02:00
parent dcc9498dbc
commit acdf0ffb42
1 changed files with 1 additions and 1 deletions

@ -195,7 +195,7 @@ module DFHack
z = bld.z z = bld.z
(bld.x1..bld.x2).each { |x| (bld.x1..bld.x2).each { |x|
(bld.y1..bld.y2).each { |y| (bld.y1..bld.y2).each { |y|
next if !extents or bld.room.extents[bld.room.width*(y-bld.room.y)+(x-bld.room.x)] == 0 next if extents and bld.room.extents[bld.room.width*(y-bld.room.y)+(x-bld.room.x)] == 0
next if not mb = map_block_at(x, y, z) next if not mb = map_block_at(x, y, z)
des = mb.designation[x%16][y%16] des = mb.designation[x%16][y%16]
des.pile = stockpile des.pile = stockpile