LoadSpritesheets: decrease the verboseness of logs in non-debug mode

This commit is contained in:
Sebastian Krzyszkowiak 2018-07-05 01:03:45 +02:00
parent a29c7b4d2c
commit dcf1375e6f

View file

@ -112,7 +112,9 @@ SYMBOL_EXPORT void LoadSpritesheets(struct Game* game, struct Character* charact
} }
for (int i = 0; i < tmp->frameCount; i++) { for (int i = 0; i < tmp->frameCount; i++) {
if ((!tmp->frames[i].bitmap) && (tmp->frames[i].file)) { if ((!tmp->frames[i].bitmap) && (tmp->frames[i].file)) {
if (game->config.debug) {
PrintConsole(game, " - %s", tmp->frames[i].file); PrintConsole(game, " - %s", tmp->frames[i].file);
}
char filename[255] = {0}; char filename[255] = {0};
snprintf(filename, 255, "sprites/%s/%s", character->name, tmp->frames[i].file); snprintf(filename, 255, "sprites/%s/%s", character->name, tmp->frames[i].file);
tmp->frames[i].bitmap = al_load_bitmap(GetDataFilePath(game, filename)); tmp->frames[i].bitmap = al_load_bitmap(GetDataFilePath(game, filename));