REDIVIVUS

Proposals / #1135

Mac AI_Monster_WalkToStoredPosition: cdecl (pGame, pUnit, dwUnused, pPathPos) prototype

approved · by KierTaylor · submitted 2026-11-05, approved 2026-11-05

Mac 0x002a4eee is "undefined (void)", convention unknown. Body reads [EBP+8] (pGame, passed to AITACTICS_WalkToTargetCoordinatesNoSteps/AI_CreateCmdIfNotExists), [EBP+0xc] (pUnit), [EBP+0x14] (path record: X at +4, Y at +8, hence int32_t*); [EBP+0x10] is never read; no ECX/EDX on entry; ends in plain RET (c3). Same 4-arg shape as the Windows twin 0x005e6de0; Mac callers pass 4 stack args. Return BOOL because Mac writes the full EAX (0/1).

Changes 1, applied together

  1. Set prototype mac 0x002a4eee

    signatureundefined AI_Monster_WalkToStoredPosition(void)→BOOL AI_Monster_WalkToStoredPosition(D2GameStrc * pGame, D2UnitStrc * pUnit, uint32_t dwUnused, int32_t * pPathPos)
    conventionunknown→__cdecl