aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_quit.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-08-07 05:02:39 -0400
committerhistoria <[not public]>2026-08-07 05:02:39 -0400
commit9a716a7d2ce514f452b425caedc1a9a15cde09f0 (patch)
treede980f16c4af93512a1616e6521275fd62aca542 /internal/game/cmd_quit.go
parent0f008790f192a491ac3901d54b506b756f57fef8 (diff)
downloadthehouseoficarus-9a716a7d2ce514f452b425caedc1a9a15cde09f0.tar.gz
feat: disconnect forfeits bet and frees up seat
Diffstat (limited to 'internal/game/cmd_quit.go')
-rw-r--r--internal/game/cmd_quit.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/game/cmd_quit.go b/internal/game/cmd_quit.go
index b7ec972..fa4038b 100644
--- a/internal/game/cmd_quit.go
+++ b/internal/game/cmd_quit.go
@@ -38,6 +38,7 @@ func (g *Game) doQuit(sess *net.Session) {
case 0:
g.cancelRest(p.Name)
g.restoreGodPlayer(p)
+ g.emitCasinoEvents(g.Casino.MarkDisconnected(p.Name))
g.AccountStore.SaveCharacter(p)
g.charsMu.Lock()
delete(g.loggedInChars, p.Name)