save progress at start of a game
This commit is contained in:
1 parent
4029c00edc
commit
6bbcc5229b
1 file changed
+3
-1
@@ -50,6 +50,8 @@ function main() {
|
||||
init_board
|
||||
fi
|
||||
|
||||
[[ "${ONLINE}" == 1 ]] && save_game "NO_EXIT"
|
||||
|
||||
render_board
|
||||
|
||||
for (( ROW; ROW<HEIGHT; ROW++ )); do
|
||||
@@ -385,7 +387,7 @@ function save_game() {
|
||||
} >> "${PROGRESS_FILE}"
|
||||
|
||||
echo -en "${RESET}"
|
||||
exit 0
|
||||
[[ -z $1 ]] && exit 0
|
||||
}
|
||||
|
||||
function save_result() {
|
||||
|
||||
Reference in new issue
Block a user