From: Holger Schemel Date: Mon, 20 Sep 2021 18:47:20 +0000 (+0200) Subject: added restoring last level set when interactively uploading tapes to server X-Git-Tag: 4.3.0.0~50 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=6f5d13e1d289522630e9f5f4827420a2229876af;p=rocksndiamonds.git added restoring last level set when interactively uploading tapes to server --- diff --git a/src/tape.c b/src/tape.c index ef7e8a5a..d5d07236 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1464,6 +1464,7 @@ static int AutoPlayTapesExt(boolean initialize) -1 }; + LevelDirTree *leveldir_current_last = leveldir_current; boolean init_level_set = FALSE; int i; @@ -1856,6 +1857,9 @@ static int AutoPlayTapesExt(boolean initialize) if (program.headless) CloseAllAndExit(0); + // when running interactively, restore last selected level set + leveldir_current = leveldir_current_last; + return num_tapes; }