Make map generation automatically import expanded pngs

This commit is contained in:
Jeroen D Stout authored and Michał Janiszewski committed 2017-11-05 23:19:25 +01:00
1 parent 25015fb15d
commit 71cfe112f1
1 file changed
+1 -1
+1 -1
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;