X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame_sp%2Ffile.c;h=53eb22ff658d87fc08198add11aa7bc24d74f57b;hp=27cb452a08136c6e8a8a0934a4bac64efb35f19c;hb=8848a001bf529a3e06710b80b928094e48f25aa8;hpb=205e33df255a817dc1032696f065256a08aa61fa diff --git a/src/game_sp/file.c b/src/game_sp/file.c index 27cb452a..53eb22ff 100644 --- a/src/game_sp/file.c +++ b/src/game_sp/file.c @@ -298,7 +298,8 @@ static void LoadNativeLevelFromFileStream_SP(FILE *file, int width, int height, } } -boolean LoadNativeLevel_SP(char *filename, int level_pos) +boolean LoadNativeLevel_SP(char *filename, int level_pos, + boolean level_info_only) { FILE *file; int i, l, x, y; @@ -324,7 +325,8 @@ boolean LoadNativeLevel_SP(char *filename, int level_pos) if (!(file = fopen(filename, MODE_READ))) { - Error(ERR_WARN, "cannot open file '%s' -- using empty level", filename); + if (!level_info_only) + Error(ERR_WARN, "cannot open file '%s' -- using empty level", filename); return FALSE; }