summaryrefslogtreecommitdiff
path: root/pkg/ui/views/game_moves.go
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-04-27 12:52:51 +0200
committerSanto Cariotti <santo@dcariotti.me>2025-04-27 12:52:51 +0200
commit5a3ce746e00393fbb2c676e3d9c037e0e3014fc8 (patch)
tree8a42a1d08c3fe6db768e7569e31800081714ae36 /pkg/ui/views/game_moves.go
parent85a6b4c2915fbfb42978fd7d2e3f7bd67e650314 (diff)
Use the multiplayer's type instead of simple string to send messages
Diffstat (limited to 'pkg/ui/views/game_moves.go')
-rw-r--r--pkg/ui/views/game_moves.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/ui/views/game_moves.go b/pkg/ui/views/game_moves.go
index fefdf85..fe4a728 100644
--- a/pkg/ui/views/game_moves.go
+++ b/pkg/ui/views/game_moves.go
@@ -127,7 +127,7 @@ func (m GameModel) handleDefineTurnMsg() (GameModel, tea.Cmd) {
}
}
- m.network.SendAll([]byte("define-turn"), []byte(string(m.turn)))
+ m.network.SendAll([]byte(string(multiplayer.DefineTurnMessage)), []byte(string(m.turn)))
return m, tea.Batch(cmds...)
}