MCPcopy Create free account
hub / github.com/diasurgical/devilution / SetItemRecord

Function SetItemRecord

Source/items.cpp:4029–4044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4027}
4028
4029void SetItemRecord(int nSeed, WORD wCI, int nIndex)
4030{
4031 DWORD dwTicks;
4032
4033 dwTicks = SDL_GetTicks();
4034
4035 if (gnNumGetRecords == MAXITEMS) {
4036 return;
4037 }
4038
4039 itemrecord[gnNumGetRecords].dwTimestamp = dwTicks;
4040 itemrecord[gnNumGetRecords].nSeed = nSeed;
4041 itemrecord[gnNumGetRecords].wCI = wCI;
4042 itemrecord[gnNumGetRecords].nIndex = nIndex;
4043 gnNumGetRecords++;
4044}
4045
4046void PutItemRecord(int nSeed, WORD wCI, int nIndex)
4047{

Callers 2

On_REQUESTGITEMFunction · 0.85
On_REQUESTAGITEMFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected