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

Function InitPlayerGFX

Source/player.cpp:246–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void InitPlayerGFX(int pnum)
247{
248 if ((DWORD)pnum >= MAX_PLRS) {
249 app_fatal("InitPlayerGFX: illegal player %d", pnum);
250 }
251
252 if (plr[pnum]._pHitPoints >> 6 == 0) {
253 plr[pnum]._pgfxnum = 0;
254 LoadPlrGFX(pnum, PFILE_DEATH);
255 } else {
256 LoadPlrGFX(pnum, PFILE_NONDEATH);
257 }
258}
259
260void InitPlrGFXMem(int pnum)
261{

Callers 1

LoadGameLevelFunction · 0.85

Calls 2

app_fatalFunction · 0.85
LoadPlrGFXFunction · 0.85

Tested by

no test coverage detected