REDIVIVUS

Proposals / #962

Mac SKILLS_SetMissileDirectionCallback: __cdecl void (D2UnitStrc * pUnit, int nDirection) (from Windows twin)

applied · by KierTaylor · submitted 2026-11-02, applied 2026-11-02

Ghidra vmac 111 · 3c6740e

Mac body reads [EBP+8] as the unit (its dynamic path at +0x2c) and the low byte of [EBP+0xc] as the direction, and passes both to the path set-direction call; no ECX/EDX input, plain RET. It is a unit-iteration callback, hence __cdecl. Windows twin SKILLS_SetMissileDirectionCallback 0x004c7470 is void (D2UnitStrc * pUnit, int nDirection).

Changes 1, applied together

  1. Set prototype mac 0x00083d2f

    signatureundefined SKILLS_SetMissileDirectionCallback(void)→void SKILLS_SetMissileDirectionCallback(D2UnitStrc * pUnit, int nDirection)
    conventionunknown→__cdecl