DrainPendingDoodads
function · terrain · orchestration
- Address
0x698c50· 193 bytes, up to0x698d10- Signature
void __cdecl (void)- Meaning
- Finishes the pending doodad defs whose models are ready: bounds, shadow intensity, owner boxes, flags
- Confidence
- verified, proof one
- Finding
- terrain/doodads#pending-doodads
Finding: Pending doodads in terrain: doodad defs
0x698c50 finishes the doodad defs whose models have loaded. For each def in the pending list
with a model it waits until the model is ready, then sets its bounds (0x6952a0), puts a def that
is not interior-lit and stands in the chunk's shadow at intensity 0.5, grows the boxes of the
objects that hold it (0x698b30) and sets bits 0 and 7 of its flags. It then takes the def off the
pending list.
The derivation is in the doc.
Callers 1
- CMap::Update terrain
Callees 4
- SetDoodadDefBounds terrain
- PropagateBoundsToOwners terrain
- IsInChunkShadow terrain
- CM2Model::IsLoaded models
Calls and jumps by a bare address, from tables/calls.tsv.