projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20111007-1-src
[rocksndiamonds.git]
/
src
/
game_sp
/
file.c
diff --git
a/src/game_sp/file.c
b/src/game_sp/file.c
index 27cb452a08136c6e8a8a0934a4bac64efb35f19c..53eb22ff658d87fc08198add11aa7bc24d74f57b 100644
(file)
--- 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;
{
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)))
{
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;
}
return FALSE;
}