aboutsummaryrefslogtreecommitdiff
path: root/internal/net/server.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-02 02:16:44 -0400
committerhistoria <[not public]>2026-10-02 02:16:44 -0400
commit62017c86392b046d746fb4fafef6742840477c5f (patch)
treeeab569e29e858ff79b8ce06caa9bacb28bc9ee81 /internal/net/server.go
parentd3a305d1d7962f82af2397760cf8008758bddd1d (diff)
downloadthehouseoficarus-62017c86392b046d746fb4fafef6742840477c5f.tar.gz
feat: polish 'list' output, drop sitout command
Diffstat (limited to 'internal/net/server.go')
-rw-r--r--internal/net/server.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/net/server.go b/internal/net/server.go
index c715074..d983161 100644
--- a/internal/net/server.go
+++ b/internal/net/server.go
@@ -502,6 +502,10 @@ func (h *Hub) hardRemoveLocked(s *Session) func(*Session) {
func (h *Hub) EnterRoom(s *Session, roomID int) {
h.mu.Lock()
defer h.mu.Unlock()
+ // A detailed table watch is scoped to the room it was set in: entering any
+ // room stops it, so leaving and returning does not silently resume it.
+ s.CasinoWatchRoom = 0
+ s.CasinoWatchTable = ""
h.leaveRoomLocked(s)
if h.rooms[roomID] == nil {
h.rooms[roomID] = make(map[*Session]bool)