Evacuation sims: per-agent exit assignment, not one shared exit field
If every occupant walks downhill on one multi-source distance field from all exits, the whole crowd converges on whichever exit is cheapest, which is unrealistic and piles everyone onto one door. A cheap fix that keeps the shared-field speed: assign each agent an exit at spawn, chosen at random (seeded) among the exits reachable from its start cell in the empty building. Each frame, build one single-source field per exit that is still in use, plus the multi-source nearest-exit field as a fallback. If fire cuts an agent's exit off (its field no longer reaches the agent's cell), reassign the agent permanently to the fallback field's exit, so it doesn't flip back and forth as fire changes. Cost is about one Dijkstra per exit in use per floor per frame. Check reachability from the cell's downhill neighbor too: an agent can stand slightly off a walkable cell center.