mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
Add console/log output for when the player is killed by various internal things, to aid in debugging
git-svn-id: https://svn.eduke32.com/eduke32@8030 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b9e61fcb7f
commit
3dcbf9955d
2 changed files with 15 additions and 5 deletions
|
@ -1344,12 +1344,20 @@ ACTOR_STATIC void G_MovePlayers(void)
|
|||
|
||||
if (pSprite->extra > 0)
|
||||
{
|
||||
#ifndef EDUKE32_STANDALONE
|
||||
if (!FURY)
|
||||
{
|
||||
actor[spriteNum].owner = spriteNum;
|
||||
|
||||
if (ud.god == 0)
|
||||
if (G_CheckForSpaceCeiling(pSprite->sectnum) || G_CheckForSpaceFloor(pSprite->sectnum))
|
||||
{
|
||||
OSD_Printf(OSD_ERROR "%s: player killed by space sector!\n", EDUKE32_FUNCTION);
|
||||
P_QuickKill(pPlayer);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
pPlayer->pos.x = pSprite->x;
|
||||
|
|
|
@ -4691,6 +4691,7 @@ void P_ProcessInput(int playerNum)
|
|||
{
|
||||
if (pSprite->extra > 0 && ud.noclip == 0)
|
||||
{
|
||||
OSD_Printf(OSD_ERROR "%s: player killed by cursectnum == -1!\n", EDUKE32_FUNCTION);
|
||||
P_QuickKill(pPlayer);
|
||||
A_PlaySound(SQUISHED, pPlayer->i);
|
||||
}
|
||||
|
@ -5474,6 +5475,7 @@ HORIZONLY:;
|
|||
|
||||
if (squishPlayer)
|
||||
{
|
||||
OSD_Printf(OSD_ERROR "%s: player killed by pushmove()!\n", EDUKE32_FUNCTION);
|
||||
P_QuickKill(pPlayer);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue