ruby: use cursor as default map_tile_at arg

develop
jj 2012-09-23 10:58:31 +02:00
parent ebd4b94c2d
commit f7272e4a8f
1 changed files with 1 additions and 1 deletions

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