aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_walk.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-25 00:44:47 -0400
committerhistoria <[not public]>2026-06-25 00:44:47 -0400
commit94a06fbbe682701ca4d4bd2a70cd74d8df29c932 (patch)
treeeb49fb1893e61092138164d419e863ee3fe0d1e2 /internal/game/cmd_walk.go
parent15b7e221b799ef107dec44ecdb294026dfd3d059 (diff)
downloadthehouseoficarus-94a06fbbe682701ca4d4bd2a70cd74d8df29c932.tar.gz
refactor: replaced map[string]any with typed structs for Data
Diffstat (limited to 'internal/game/cmd_walk.go')
-rw-r--r--internal/game/cmd_walk.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/game/cmd_walk.go b/internal/game/cmd_walk.go
index 9485af5..d7d51e2 100644
--- a/internal/game/cmd_walk.go
+++ b/internal/game/cmd_walk.go
@@ -112,12 +112,10 @@ func (g *Game) advanceWalk(sess *net.Session, p *player.Player) {
if p.MoveTicks == 0 && p.RoomID == oldRoom {
p.WalkSequence = nil
- p.ActionState = nil
return
}
if len(p.WalkSequence) > 0 && remaining != "" {
- p.ActionState = &ActionState{Type: ActionWalking}
sess.WriteLine(fmt.Sprintf("You're headed: %s.", remaining))
}
}