diff options
Diffstat (limited to 'internal/game/cmd_move.go')
| -rw-r--r-- | internal/game/cmd_move.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/game/cmd_move.go b/internal/game/cmd_move.go index 79ca45e..d62701d 100644 --- a/internal/game/cmd_move.go +++ b/internal/game/cmd_move.go @@ -79,7 +79,7 @@ func (g *Game) doMove(sess *net.Session, dir string) { } sess.WriteLine(fmt.Sprintf("\nYou walk %s.", exitDir)) - if p.Toggles["description"] { + if p.OptionBool("description") { g.doLook(sess) } else { targetRoom, _ := g.World.LoadRoom(targetID) @@ -88,6 +88,10 @@ func (g *Game) doMove(sess *net.Session, dir string) { } } + if p.OptionBool("automap") { + g.doMap(sess) + } + g.RunEnterSteps(sess, targetID) } |
