fix: set room status to Playing when game starts

This commit is contained in:
2026-03-24 10:40:04 +09:00
parent 4db3ba1fc5
commit b6c28ddd80
3 changed files with 28 additions and 0 deletions

View File

@@ -262,6 +262,7 @@ func (m Model) updateClassSelect(msg tea.Msg) (tea.Model, tea.Cmd) {
player.Fingerprint = m.fingerprint
m.session.AddPlayer(player)
m.session.StartGame()
m.lobby.StartRoom(m.roomCode)
m.gameState = m.session.GetState()
m.screen = screenGame
}