forked from rosebudai/OpenRCT2-Web
Make map generation automatically import expanded pngs
This commit is contained in:
1 parent
25015fb15d
commit
71cfe112f1
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user