added checking for missing INFO chunk when loading tape by filename only
[rocksndiamonds.git] / src / tape.c
index a22fc9a54741013239ad7c63bf3a487c14237440..d77703295f3fcb5ee69619d658bd713de42e36b5 100644 (file)
@@ -1589,6 +1589,9 @@ static int AutoPlayTapesExt(boolean initialize)
          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)