REDIVIVUS

Proposals / #889

Mac AUTOMAP_RevealTile: __fastcc void (pTileData, pRoomEx, ppAutomapCell)

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

Ghidra vmac 111 · 3c6740e

Mac body: ECX (ESI) has its flags dword at +0x14 tested/OR'd with 0x40000, +0x8/+0xc added to a room origin, +0x18 handed to the tile-graphic getters and +0x1c compared with 0x10: that is the tile data. EDX (EDI) supplies +0x34/+0x38 (room tile origin) and +0x58 (level): the RoomEx. [EBP+8] is passed in EDX with the new cell in ECX to the insert routine: the tree root. Windows AUTOMAP_RevealTile 0x00457cf0 takes the same three (pRoomEx, pAutomapCell, pTileData) in a different order.

Changes 1, applied together

  1. Set prototype mac 0x0009c08a

    signatureundefined AUTOMAP_RevealTile(void)→void AUTOMAP_RevealTile(D2DrlgTileDataStrc * pTileData, D2RoomExStrc * pRoomEx, D2AutomapCellStrc * * ppAutomapCell)
    conventionunknown→__fastcc