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

Function FreePlayerGFX

Source/player.cpp:376–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376void FreePlayerGFX(int pnum)
377{
378 if ((DWORD)pnum >= MAX_PLRS) {
379 app_fatal("FreePlayerGFX: illegal player %d", pnum);
380 }
381
382 MemFreeDbg(plr[pnum]._pNData);
383 MemFreeDbg(plr[pnum]._pWData);
384 MemFreeDbg(plr[pnum]._pAData);
385 MemFreeDbg(plr[pnum]._pHData);
386 MemFreeDbg(plr[pnum]._pLData);
387 MemFreeDbg(plr[pnum]._pFData);
388 MemFreeDbg(plr[pnum]._pTData);
389 MemFreeDbg(plr[pnum]._pDData);
390 MemFreeDbg(plr[pnum]._pBData);
391 plr[pnum]._pGFXLoad = 0;
392}
393
394void NewPlrAnim(int pnum, BYTE *Peq, int numFrames, int Delay, int width)
395{

Callers 1

free_gameFunction · 0.85

Calls 1

app_fatalFunction · 0.85

Tested by

no test coverage detected