mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +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,11 +1344,19 @@ ACTOR_STATIC void G_MovePlayers(void)
|
|||
|
||||
if (pSprite->extra > 0)
|
||||
{
|
||||
actor[spriteNum].owner = spriteNum;
|
||||
#ifndef EDUKE32_STANDALONE
|
||||
if (!FURY)
|
||||
{
|
||||
actor[spriteNum].owner = spriteNum;
|
||||
|
||||
if (ud.god == 0)
|
||||
if (G_CheckForSpaceCeiling(pSprite->sectnum) || G_CheckForSpaceFloor(pSprite->sectnum))
|
||||
P_QuickKill(pPlayer);
|
||||
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
|
||||
{
|
||||
|
|
|
@ -4586,7 +4586,7 @@ static void P_DoJetpack(int const playerNum, int const playerBits, int const pla
|
|||
static void P_Dead(int const playerNum, int const sectorLotag, int const floorZ, int const ceilZ)
|
||||
{
|
||||
auto const pPlayer = g_player[playerNum].ps;
|
||||
auto const pSprite = &sprite[pPlayer->i];
|
||||
auto const pSprite = &sprite[pPlayer->i];
|
||||
|
||||
if (ud.recstat == 1 && (!g_netServer && ud.multimode < 2))
|
||||
G_CloseDemoWrite();
|
||||
|
@ -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