Enha: stop timer if turn ended

This commit is contained in:
Grail Finder
2025-07-01 09:38:03 +03:00
parent e6177df5d8
commit 036def3819
7 changed files with 50 additions and 25 deletions

View File

@ -303,7 +303,12 @@ func notify(event, msg string) {
}
func loadCards(room *models.Room) {
wl := wordloader.InitDefaultLoader("assets/words/en_nouns.txt")
// store it somewhere
wordMap := map[string]string{
"en": "assets/words/en_nouns.txt",
"ru": "assets/words/ru_nouns.txt",
}
wl := wordloader.InitDefaultLoader(wordMap[room.Settings.Language])
cards, err := wl.Load()
if err != nil {
// no logger