aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_burn.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-18 05:31:09 -0400
committerhistoria <[not public]>2026-09-18 05:31:09 -0400
commit153acb7f644d755c45533b7c5311e3ffa47e8973 (patch)
tree7645e6f7b65bc3830b078e3b9336d2e6b199d584 /internal/game/act_burn.go
parent87d08f0151e643951769e323995f1c5ed89ee200 (diff)
downloadthehouseoficarus-153acb7f644d755c45533b7c5311e3ffa47e8973.tar.gz
fix: harden engine across casino, economy, concurrency, security, and content
Diffstat (limited to 'internal/game/act_burn.go')
-rw-r--r--internal/game/act_burn.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/game/act_burn.go b/internal/game/act_burn.go
index 2d03ac4..84f7f14 100644
--- a/internal/game/act_burn.go
+++ b/internal/game/act_burn.go
@@ -417,6 +417,12 @@ func (g *Game) broadcastDrop(p *player.Player, itemID, itemName string) {
}
func (g *Game) FireTick() {
+ // Mandatory tick-system guard: the master per-tick subscriber can fire
+ // before SetHub during startup, and burning out a fire reaches
+ // cancelStokers -> g.Hub.PlayersInRoom. See building_guide/tick_order.md.
+ if g.Hub == nil {
+ return
+ }
for _, st := range g.World.AllFireStates() {
st.Quality--
if st.Quality <= 0 {