fix broken map generation

This commit is contained in:
Sean Barrett
2014-08-17 21:08:43 -07:00
parent 45469cfa27
commit 14e8b66119
2 changed files with 11 additions and 5 deletions

View File

@ -29,7 +29,8 @@ int main(int argc, char **argv)
pixels = stbi_load(filename, &w, &h, 0, 3);
if (pixels == 0) {
fprintf(stderr, "Could open input file '%s'\n", filename);
fprintf(stderr, "Couldn't open input file '%s'\n", filename);
exit(1);
}
if (!stbhw_build_tileset_from_image(&ts, pixels, w*3, w, h)) {