Saving app at end-of-turn.

logins
Thomas Hintz 5 years ago
parent ee4e05868c
commit 3ea60306b7

@ -1118,6 +1118,13 @@
(safe-set! (player-harvesting player) #f)
(if (>= (player-cash player) 0)
(begin (advance-turn game player)
(handle-exceptions
exn
(begin (print-call-chain)
(print exn)
(print-error-message exn)
(print "error saving app"))
(save-app))
(if (eq? (game-state game) 'finished)
(do-end-of-game game)
(message-players! game player '() type: "update"))

Loading…
Cancel
Save