Move signal trap initialization after game mode questions - Prevent progress files after incorrect username
This commit is contained in:
1 parent
6bbcc5229b
commit
bdb3d4e4d1
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user