X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.c;h=f5d78c6a8cb14e5e2710780501538b73e35445af;hb=bcb1d6118c2d3484e1881a78fd859562745aa553;hp=4c7dec9874b4822a349a7cc2bd72829cd4b23f82;hpb=c46e2387a49ace5f9208bb3fcf3d6245868146b0;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index 4c7dec98..f5d78c6a 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1466,6 +1466,7 @@ static int AutoPlayTapesExt(boolean initialize) }; LevelDirTree *leveldir_current_last = leveldir_current; boolean init_level_set = FALSE; + int level_nr_last = level_nr; int i; if (!initialize) @@ -1865,8 +1866,9 @@ static int AutoPlayTapesExt(boolean initialize) if (program.headless) CloseAllAndExit(0); - // when running interactively, restore last selected level set + // when running interactively, restore last selected level set and number leveldir_current = leveldir_current_last; + level_nr = level_nr_last; return num_tapes; }