1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Make map generation automatically import expanded pngs

This commit is contained in:
Jeroen D Stout
2017-10-03 23:26:41 +02:00
committed by Michał Janiszewski
parent 25015fb15d
commit 71cfe112f1

View File

@@ -790,7 +790,7 @@ bool mapgen_load_heightmap(const utf8 *path)
uint32 width, height;
if (strcicmp(extension, ".png") == 0) {
if (!image_io_png_read(&pixels, &width, &height, path)) {
if (!image_io_png_read(&pixels, &width, &height, true, path)) {
log_warning("Error reading PNG");
context_show_error(STR_HEIGHT_MAP_ERROR, STR_ERROR_READING_PNG);
return false;