only update stats for the daily game
update_stats ran for every online game, so practice games played after the daily counted towards played/wins/losses and a practice loss reset the streak. Move it inside the DAILY_DONE check with the board files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8dfebaa9f8
commit
d34d98c15d
1 file changed
+1
-1
@@ -432,8 +432,8 @@ function save_game() {
|
||||
|
||||
function save_result() {
|
||||
[[ "${ONLINE}" == 0 ]] && return 0
|
||||
[[ "${ONLINE}" == 1 ]] && update_stats
|
||||
if [[ "${ONLINE}" == 1 ]] && [[ "${DAILY_DONE}" != 1 ]]; then
|
||||
update_stats
|
||||
render_board > "${RESULT_FILE}"
|
||||
render_board > "${CUR_RESULT_FILE}"
|
||||
if [[ $WIN != 5 ]]; then
|
||||
|
||||
Reference in new issue
Block a user