Flipped flat map so North is up
This commit is contained in:
parent
d53b3bc340
commit
553a956949
2 changed files with 3 additions and 3 deletions
|
|
@ -117,7 +117,7 @@ public class FlatMap extends MapType {
|
|||
pixel[2] += (255-pixel[2]) * scale;
|
||||
}
|
||||
|
||||
raster.setPixel(x, y, pixel);
|
||||
raster.setPixel(t.size-y-1, x, pixel);
|
||||
rendered = true;
|
||||
}
|
||||
|
||||
|
|
@ -148,7 +148,7 @@ public class FlatMap extends MapType {
|
|||
|
||||
@Override
|
||||
public String getFilename() {
|
||||
return map.prefix + "_" + size + "_" + x + "_" + y + ".png";
|
||||
return map.prefix + "_" + size + "_" + -(y+1) + "_" + x + ".png";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue