projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added checking for missing INFO chunk when loading tape by filename only
[rocksndiamonds.git]
/
src
/
tape.c
diff --git
a/src/tape.c
b/src/tape.c
index a22fc9a54741013239ad7c63bf3a487c14237440..d77703295f3fcb5ee69619d658bd713de42e36b5 100644
(file)
--- a/
src/tape.c
+++ b/
src/tape.c
@@
-1589,6
+1589,9
@@
static int AutoPlayTapesExt(boolean initialize)
Fail("cannot load tape file '%s'", autoplay.tape_filename);
}
Fail("cannot load tape file '%s'", autoplay.tape_filename);
}
+ if (tape.no_info_chunk)
+ Fail("cannot get levelset from tape file '%s'", autoplay.tape_filename);
+
global.autoplay_leveldir = tape.level_identifier;
if (tape.level_nr >= 0 && tape.level_nr < MAX_TAPES_PER_SET)
global.autoplay_leveldir = tape.level_identifier;
if (tape.level_nr >= 0 && tape.level_nr < MAX_TAPES_PER_SET)