Because filesnames starting with a "-" are somewhat annoying to work with, prepend "tile_" to the tile filenames.

This commit is contained in:
Martijn Versteegh 2018-12-03 10:46:19 +01:00
parent 07b4aabde6
commit b4e1145086
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ void TileGenerator::generate(const std::string &input, const std::string &output
renderPlayers(input_path);
}
ostringstream fn;
fn << (x + minTileX) << '_' << (y + minTileY) << '_' << output;
fn << "tile_" << (x + minTileX) << '_' << (y + minTileY) << '_' << output;
writeImage(fn.str());
}
}