aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_map.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_map.go')
-rw-r--r--internal/game/cmd_map.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/game/cmd_map.go b/internal/game/cmd_map.go
index 1c78be3..7cad008 100644
--- a/internal/game/cmd_map.go
+++ b/internal/game/cmd_map.go
@@ -2,11 +2,10 @@ package game
import (
"thehouseoficarus/internal/net"
- "thehouseoficarus/internal/player"
)
func (g *Game) doMap(sess *net.Session) {
- p := sess.Player.(*player.Player)
+ p := sess.Player
mapWidth := p.OptionInt("mapwidth")
mapHeight := p.OptionInt("mapheight")
if mapWidth < 5 {