From: Holger Schemel Date: Mon, 20 Sep 2021 21:15:00 +0000 (+0200) Subject: added restoring level number when interactively uploading tapes to server X-Git-Tag: 4.3.0.0~48 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=2ca6dedc8eb88f6d00eb3eaab129e655ae2e035f;p=rocksndiamonds.git added restoring level number when interactively uploading tapes to server --- 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; }