diff options
| author | jj | 2012-09-01 03:35:47 +0200 |
|---|---|---|
| committer | jj | 2012-09-01 03:35:47 +0200 |
| commit | acdf0ffb42e6196cf85d36228ed247b2dae357ad (patch) | |
| tree | 70c84dc28086ce0060ef379141d0525264575be0 /plugins/ruby | |
| parent | dcc9498dbc9e7bf5c477af28659aac2aac58b525 (diff) | |
| download | dfhack-acdf0ffb42e6196cf85d36228ed247b2dae357ad.tar.gz dfhack-acdf0ffb42e6196cf85d36228ed247b2dae357ad.tar.bz2 dfhack-acdf0ffb42e6196cf85d36228ed247b2dae357ad.tar.xz | |
ruby: fix create building map occupancy
Diffstat (limited to 'plugins/ruby')
| -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 cb435b9d..d71a909c 100644 --- a/plugins/ruby/building.rb +++ b/plugins/ruby/building.rb @@ -195,7 +195,7 @@ module DFHack z = bld.z (bld.x1..bld.x2).each { |x| (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) des = mb.designation[x%16][y%16] des.pile = stockpile |
