summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorjj2012-09-24 19:19:34 +0200
committerjj2012-09-24 19:19:34 +0200
commitf628c3732ae62c324c91553333ebd4e51f486090 (patch)
treeab7ece71c219813b010a10796095a8cea33a35b8 /plugins
parenta622ee52e9e7063303ca04cc2b8ed1ae81d28a2d (diff)
downloaddfhack-f628c3732ae62c324c91553333ebd4e51f486090.tar.gz
dfhack-f628c3732ae62c324c91553333ebd4e51f486090.tar.bz2
dfhack-f628c3732ae62c324c91553333ebd4e51f486090.tar.xz
ruby: avoid smoothing grass/trees
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ruby/map.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ruby/map.rb b/plugins/ruby/map.rb
index 9629c3f9..37161470 100644
--- a/plugins/ruby/map.rb
+++ b/plugins/ruby/map.rb
@@ -198,7 +198,7 @@ module DFHack
def dig(mode=:Default)
if mode == :Smooth
- if tilemat != :SOIL and caption !~ /smooth|pillar|fortification/i and # XXX caption..
+ if (tilemat == :STONE or tilemat == :MINERAL) and caption !~ /smooth|pillar|fortification/i and # XXX caption..
designation.smooth == 0 and (designation.hidden or not df.world.job_list.find { |j|
# the game removes 'smooth' designation as soon as it assigns a job, if we
# re-set it the game may queue another :DetailWall that will carve a fortification