| 3336 | } |
| 3337 | |
| 3338 | BOOL 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 | |
| 3359 | void ValidatePlayer() |
| 3360 | { |
no test coverage detected