mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-08 06:06:43 +01:00
LoadSpritesheets: decrease the verboseness of logs in non-debug mode
This commit is contained in:
parent
a29c7b4d2c
commit
dcf1375e6f
1 changed files with 3 additions and 1 deletions
|
@ -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)) {
|
||||||
PrintConsole(game, " - %s", tmp->frames[i].file);
|
if (game->config.debug) {
|
||||||
|
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));
|
||||||
|
|
Loading…
Reference in a new issue