diff options
| author | jj | 2012-09-23 10:58:31 +0200 |
|---|---|---|
| committer | jj | 2012-09-23 10:58:31 +0200 |
| commit | f7272e4a8f09d11ee41b068277de1f61993cfaa8 (patch) | |
| tree | 9ffe8c4900c1f2e394950a4ee9d15f4c3af45ffc /plugins | |
| parent | ebd4b94c2d26f18bfde389fed910eb69dccd7ced (diff) | |
| download | dfhack-f7272e4a8f09d11ee41b068277de1f61993cfaa8.tar.gz dfhack-f7272e4a8f09d11ee41b068277de1f61993cfaa8.tar.bz2 dfhack-f7272e4a8f09d11ee41b068277de1f61993cfaa8.tar.xz | |
ruby: use cursor as default map_tile_at arg
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/ruby/map.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ruby/map.rb b/plugins/ruby/map.rb index d662a343..4e8bf910 100644 --- a/plugins/ruby/map.rb +++ b/plugins/ruby/map.rb @@ -26,7 +26,7 @@ module DFHack end end - def map_tile_at(x, y=nil, z=nil) + def map_tile_at(x=df.cursor, y=nil, z=nil) x = x.pos if x.respond_to?(:pos) x, y, z = x.x, x.y, x.z if x.respond_to?(:x) b = map_block_at(x, y, z) |
