Mac GoldCalculations: void __fastcc (pUnit ECX, nGoldAmount EDX, int* pGoldAccepted, int* pGoldOverflow)
Resubmit of #1255 with __fastcc, as the reviewer asked; parameters are unchanged. It has two stack args and a plain RET (0x002772fb), and the callers clean up. ECX = pUnit, EDX = gold amount, [EBP+8]/[EBP+0xc] = accepted/overflow out pointers. Callers 0x0027714d, 0x00277224. Windows twin 0x00540650.
Changes 1, applied together
Set prototype
mac 0x002772a8signatureundefined GoldCalculations(void)→void GoldCalculations(D2UnitStrc* pUnit, int32_t nGoldAmount, int* pGoldAccepted, int* pGoldOverflow)conventionunknown→__fastcc