From 5a3ce746e00393fbb2c676e3d9c037e0e3014fc8 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sun, 27 Apr 2025 12:52:51 +0200 Subject: Use the multiplayer's type instead of simple string to send messages --- pkg/ui/views/game_moves.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/ui/views/game_moves.go') 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...) } -- cgit v1.2.3-18-g5258