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

Function PlrDeathModeOK

Source/player.cpp:3338–3357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3336}
3337
3338BOOL PlrDeathModeOK(int p)
3339{
3340 if (p != myplr) {
3341 return TRUE;
3342 }
3343
3344 if ((DWORD)p >= MAX_PLRS) {
3345 app_fatal("PlrDeathModeOK: illegal player %d", p);
3346 }
3347
3348 if (plr[p]._pmode == PM_DEATH) {
3349 return TRUE;
3350 } else if (plr[p]._pmode == PM_QUIT) {
3351 return TRUE;
3352 } else if (plr[p]._pmode == PM_NEWLVL) {
3353 return TRUE;
3354 }
3355
3356 return FALSE;
3357}
3358
3359void ValidatePlayer()
3360{

Callers 1

ProcessPlayersFunction · 0.85

Calls 1

app_fatalFunction · 0.85

Tested by

no test coverage detected