aboutsummaryrefslogtreecommitdiff
path: root/internal/game/room_reconcile.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/room_reconcile.go')
-rw-r--r--internal/game/room_reconcile.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/game/room_reconcile.go b/internal/game/room_reconcile.go
index 7491776..31b66f6 100644
--- a/internal/game/room_reconcile.go
+++ b/internal/game/room_reconcile.go
@@ -14,6 +14,9 @@ func (g *Game) ReconcileRoom(roomID int) {
return
}
g.World.ReconcileRoomState(roomID, room)
+ // Guard-watch cycle timers are keyed by room:object; an object edit can
+ // remove the object the timer belonged to, so drop the room's timers.
+ g.clearGuardWatchRoom(roomID)
if g.MobStore != nil {
g.MobStore.RemoveMobsInRoom(roomID)
g.MobStore.SeedMobs(roomID, room.Mobs)