Move signal trap initialization after game mode questions - Prevent progress files after incorrect username

This commit is contained in:
adam committed 2025-02-22 19:41:46 +00:00
1 parent 6bbcc5229b
commit bdb3d4e4d1
1 file changed
+2 -2
+2 -2
View File
@@ -149,8 +149,6 @@ function set_options() {
declare -gr STATS_FILE="${USER}.stats"
trap save_game SIGINT
if [[ -f "${PROGRESS_FILE}" ]] && [[ -s "${PROGRESS_FILE}" ]]; then
load_game
RESUME=1
@@ -170,6 +168,8 @@ function set_options() {
[[ "${HM}" =~ ^[Yy]$ ]] && STRICT_HARD_MODE=1
fi
fi
trap save_game SIGINT
;;
d)
DELAY=0