diff options
| author | historia <[not public]> | 2026-09-18 05:31:09 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-18 05:31:09 -0400 |
| commit | 153acb7f644d755c45533b7c5311e3ffa47e8973 (patch) | |
| tree | 7645e6f7b65bc3830b078e3b9336d2e6b199d584 /internal/game/act.go | |
| parent | 87d08f0151e643951769e323995f1c5ed89ee200 (diff) | |
| download | thehouseoficarus-153acb7f644d755c45533b7c5311e3ffa47e8973.tar.gz | |
fix: harden engine across casino, economy, concurrency, security, and content
Diffstat (limited to 'internal/game/act.go')
| -rw-r--r-- | internal/game/act.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/game/act.go b/internal/game/act.go index 64d1848..1317df4 100644 --- a/internal/game/act.go +++ b/internal/game/act.go @@ -198,7 +198,10 @@ func (g *Game) AdvanceActions() { if g.Hub == nil { return } - for _, sess := range g.Hub.AllSessions() { + // One session snapshot per tick: the background-action pass below used to + // re-snapshot the whole hub. + sessions := g.Hub.AllSessions() + for _, sess := range sessions { p := sess.Player if p == nil || p.Action == nil { continue @@ -245,7 +248,7 @@ func (g *Game) AdvanceActions() { } } - for _, sess := range g.Hub.AllSessions() { + for _, sess := range sessions { p := sess.Player if p == nil || p.BackgroundAction == nil { continue |
