frame allocs (25.2): physics, npc, vehicles and wildlife's bounded growth declared - id tables to their most, a walker slot, a guest's copies, a player's own vehicle, a table at a load

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-28 16:01:30 +03:00
parent 082fd26bf1
commit 34664e867f
7 changed files with 8 additions and 0 deletions

View file

@ -9,6 +9,7 @@ export function npc_spawn(npc_st: mut NpcState, kind: int) -> NpcPerson {
break
}
}
@alloc_ok("a walker for each of np_max at most; one who left is reused")
if p == null {
if len(npc_st.np_walkers) >= npc_st.np_max { return null }
p = new NpcPerson