diff options
| author | historia <[not public]> | 2026-08-07 05:02:39 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-08-07 05:02:39 -0400 |
| commit | 9a716a7d2ce514f452b425caedc1a9a15cde09f0 (patch) | |
| tree | de980f16c4af93512a1616e6521275fd62aca542 /internal/game/cmd_quit.go | |
| parent | 0f008790f192a491ac3901d54b506b756f57fef8 (diff) | |
| download | thehouseoficarus-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.go | 1 |
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) |
