Skip to content

Commit

Permalink
fix discard bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanb committed Jun 27, 2023
1 parent 3659dc3 commit da76e7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tcl/main.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ proc discardscoreboard {} {
foreach key [array names ::scoreboard] {
set ::scoreboard($key) $::applied_scoreboard($key)
}
# Country is updated whenever player name is updated,
# so make sure we set countries last.
set ::scoreboard(p1country) $::applied_scoreboard(p1country)
set ::scoreboard(p2country) $::applied_scoreboard(p2country)
}

proc update_applied_scoreboard {} {
Expand Down

0 comments on commit da76e7f

Please sign in to comment.