From 9192d94dea6be5498ab080f3e2df5667af871d7a Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 16 Sep 2026 14:41:15 -0400 Subject: fix: casino room eviction, session close race fix, open-payout recovery evidence --- internal/game/cmd_undig.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/game/cmd_undig.go') diff --git a/internal/game/cmd_undig.go b/internal/game/cmd_undig.go index 2215c51..a41cb08 100644 --- a/internal/game/cmd_undig.go +++ b/internal/game/cmd_undig.go @@ -241,6 +241,9 @@ func (g *Game) performUndig(sess *net.Session, p *player.Player, targetID int) { g.MobStore.RemoveMobsInRoom(targetID) g.World.ClearRoomState(targetID) + // Drop any cached in-room games and refund their outstanding wagers + // (same eviction semantics as the other room-removal paths). + g.EvictCasinoRoom(targetID) sess.WriteLine(fmt.Sprintf("Deleted room %s and %d exit(s) pointing to it.", roomName, cleaned)) } -- cgit v1.2.3