aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_look.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-02 14:43:26 -0400
committerhistoria <[not public]>2026-10-02 14:43:26 -0400
commit4f40f116ba884111c9a66849e620ff9fbc67530a (patch)
treeaf407f199be482f9aac997d2cfaa0d86a806d8ff /internal/game/cmd_look.go
parent62017c86392b046d746fb4fafef6742840477c5f (diff)
downloadthehouseoficarus-4f40f116ba884111c9a66849e620ff9fbc67530a.tar.gz
feat: compact craps layout, ux cleanup
Diffstat (limited to 'internal/game/cmd_look.go')
-rw-r--r--internal/game/cmd_look.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/game/cmd_look.go b/internal/game/cmd_look.go
index 70bc2c2..38cc83c 100644
--- a/internal/game/cmd_look.go
+++ b/internal/game/cmd_look.go
@@ -56,7 +56,11 @@ func (g *Game) doLook(sess *net.Session) {
}
}
- g.showRoomExits(sess, p, room)
+ // When the minimap is taller than the room content it already renders
+ // empty content rows below the last line, so the exit section must not
+ // add another gap on top of them: that is what read as two blank lines.
+ addExitGap := !(mapOn && len(mapLines) > len(content))
+ g.showRoomExits(sess, p, room, addExitGap)
g.showRoomPlayers(sess, p, room)
// Seated at a table: look keeps its room-first order, then appends the
// live game state and the current hint menu.