lib/remedy/viewport.rb in remedy-0.0.4.pre vs lib/remedy/viewport.rb in remedy-0.0.4
- old
+ new
@@ -17,12 +17,12 @@
ANSI.screen.safe_reset!
Console.output << view
end
- def range_find map, center, heightwidth
+ def range_find partial, center, heightwidth
row_size, col_size = heightwidth
- row_limit, col_limit = map.size
+ row_limit, col_limit = partial.size
center_row, center_col = center.coords
row_range = center_range center_row, row_size, row_limit
col_range = center_range center_col, col_size, col_limit