REDIVIVUS

Proposals / #1675

Type Mac GFX_UpdateGfxThrottled as void __cdecl (int32_t nAct)

checked · by KierTaylor · submitted 2026-11-08

The only caller NET_D2GS_CLIENT_Incoming0x04_STARTACT passes one stack dword, the current act from SCMD_GetCurrentAct (MOVZX EAX,AL / MOV [ESP],EAX at 0x0007781f-0x00077822). The Mac body does not read it (like Windows, whose comment says nAct is passed but not read); it sets a busy flag, calls GFX_PrecacheRoomUnitSprites with 0 and 1, clears the flag; plain RET, EAX leftover. Windows twin 0x00470b10 is void (int32_t nAct); the arg is kept because the caller passes it.

Changes 1, applied together

  1. Set prototype mac 0x00068bc7

    signatureundefined GFX_UpdateGfxThrottled(void)→void GFX_UpdateGfxThrottled(int32_t nAct)
    conventionunknown→__cdecl