aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_say.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_say.go')
-rw-r--r--internal/game/cmd_say.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/game/cmd_say.go b/internal/game/cmd_say.go
index 67d8165..3d619a0 100644
--- a/internal/game/cmd_say.go
+++ b/internal/game/cmd_say.go
@@ -4,11 +4,10 @@ import (
"fmt"
"thehouseoficarus/internal/net"
- "thehouseoficarus/internal/player"
)
func (g *Game) doSay(sess *net.Session, msg string) {
- p := sess.Player.(*player.Player)
+ p := sess.Player
roomID := p.RoomID
for _, other := range g.Hub.PlayersInRoom(roomID) {