19 |
-- |
-- |
20 |
function draw_metamap_oriented(x,y,bmap,cells,flipx, flipy,rotate) |
function draw_metamap_oriented(x,y,bmap,cells,flipx, flipy,rotate) |
21 |
local bmapw,bmaph = get_map_size(bmap) |
local bmapw,bmaph = get_map_size(bmap) |
22 |
if ((bmapw < bmaph) or (bmapw > bmaph)) then -- I didn't find operator != :-( |
if (bmapw~=bmaph) then |
23 |
print("warning: [ralf.lua]: draw_metamap_oriented() prefers quadratic maps!") |
print("warning: [ralf.lua]: draw_metamap_oriented() prefers quadratic maps!") |
24 |
end |
end |
25 |
draw_map_oriented(x*bmapw+1,y*bmaph+1,bmap,bmapw,bmaph,cells,flipx,flipy,rotate) |
draw_map_oriented(x*bmapw+1,y*bmaph+1,bmap,bmapw,bmaph,cells,flipx,flipy,rotate) |