aboutsummaryrefslogtreecommitdiff
path: root/internal/game/color.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/color.go')
-rw-r--r--internal/game/color.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/game/color.go b/internal/game/color.go
index c3b3d83..962728a 100644
--- a/internal/game/color.go
+++ b/internal/game/color.go
@@ -5,11 +5,10 @@ import (
"thehouseoficarus/internal/config"
"thehouseoficarus/internal/net"
"thehouseoficarus/internal/object"
- "thehouseoficarus/internal/player"
)
func (g *Game) colorMode(sess *net.Session) string {
- if p, ok := sess.Player.(*player.Player); ok && p != nil {
+ if p := sess.Player; p != nil {
return p.OptionString("color")
}
return "none"