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.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/cmd_map.go b/internal/game/cmd_map.go
index be35a66..90f58ab 100644
--- a/internal/game/cmd_map.go
+++ b/internal/game/cmd_map.go
@@ -10,8 +10,8 @@ func (g *Game) executeMap(sess *net.Session, args []string, rawInput string) {
func (g *Game) doMap(sess *net.Session) {
p := sess.Player
- mapWidth := p.OptionInt("mapwidth")
- mapHeight := p.OptionInt("mapheight")
+ mapWidth := p.OptionInt("map_width")
+ mapHeight := p.OptionInt("map_height")
if mapWidth < 5 {
mapWidth = 5
}
@@ -21,7 +21,7 @@ func (g *Game) doMap(sess *net.Session) {
lines := buildFullMap(g, p.RoomID, mapWidth, mapHeight, mapGlyphsForPlayer(p.OptionBool("unicode")))
- mode := p.OptionString("mappadding")
+ mode := p.OptionString("map_padding")
if mode == "none" || mode == "x" {
lines = stripBlankRows(lines)
}