benilla-re systems structs docs

CMovement::RecordLateness

function · collision · primitive

Address
0x618b50 · 83 bytes, up to 0x618ba2
Signature
int32_t __thiscall (CMovement *this, int32_t wireDelta, int32_t localDelta)
Meaning
Stores localDelta - wireDelta + base in a 32-slot ring and returns the ring maximum as a signed value
Confidence
verified, proof one
Finding
collision/eventapply#lateness-ring

Finding: Lateness ring in collision: event applies

0x618b50(wireDelta, localDelta) stores localDelta − wireDelta + base (base at +0x140) in slot +0x13c of the ring at +0xbc, advances the slot modulo 32, and returns the largest of all 32 slots, the new one included, as signed 32-bit integers. The constructor 0x616fa0 fills slots 0 to 15 with −50 and 16 to 31 with 50, and sets the base to 50 and the slot to 0 (0x616fbc), so a fresh unit's maximum stays at least 50 until 32 samples have replaced them. 0x618c30 passes the status time's forward step, 0 when it does not advance, and the local time since the last fire.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.