diff options
| author | historia <[not public]> | 2026-09-16 02:56:56 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-16 02:56:56 -0400 |
| commit | f2d44f10f52d3fe68fdb19b518a330f7af9e1ed2 (patch) | |
| tree | 9db54e8d4fd2f9bd30c651700f7cf246eef1b017 /internal/game/tick.go | |
| parent | ad60843fbf577eda80105e3916822d663aaefcb3 (diff) | |
| download | thehouseoficarus-f2d44f10f52d3fe68fdb19b518a330f7af9e1ed2.tar.gz | |
fix: disconnect race, rename ownership, reserved pickup, economy recovery retry/refund semantics
Diffstat (limited to 'internal/game/tick.go')
| -rw-r--r-- | internal/game/tick.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/game/tick.go b/internal/game/tick.go index 8910137..3f6a8b2 100644 --- a/internal/game/tick.go +++ b/internal/game/tick.go @@ -14,7 +14,7 @@ func (g *Game) DisconnectTick() { return } for _, sess := range g.Hub.AllSessions() { - if !sess.Disconnecting { + if !sess.IsDisconnecting() { continue } p := sess.Player @@ -25,8 +25,7 @@ func (g *Game) DisconnectTick() { if g.Combat.Get(p.Name) != nil { continue } - sess.DisconnectTicks-- - if sess.DisconnectTicks <= 0 { + if sess.TickDisconnectCountdown() { g.restoreGodPlayer(p) g.AccountStore.SaveCharacter(p) g.Hub.HardRemove(sess) |
