mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- Exhumed: Move doPlayerMask()
into doPlayerCounters()
.
This commit is contained in:
parent
1ebc634ac0
commit
47d25932d5
1 changed files with 10 additions and 19 deletions
|
@ -814,6 +814,16 @@ static void doPlayerCounters(Player* const pPlayer)
|
|||
}
|
||||
}
|
||||
|
||||
if (pPlayer->nMaskAmount > 0 && pPlayer->nHealth > 0)
|
||||
{
|
||||
pPlayer->nMaskAmount--;
|
||||
|
||||
if (pPlayer->nMaskAmount == 150 && pPlayer->nPlayer == nLocalPlayer)
|
||||
{
|
||||
PlayAlert(GStrings("TXT_EX_MASKEX"));
|
||||
}
|
||||
}
|
||||
|
||||
if (pPlayer->nQuake != 0)
|
||||
{
|
||||
pPlayer->nQuake = -pPlayer->nQuake;
|
||||
|
@ -836,22 +846,6 @@ static void doPlayerCounters(Player* const pPlayer)
|
|||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
static void doPlayerMask(Player* const pPlayer)
|
||||
{
|
||||
pPlayer->nMaskAmount--;
|
||||
|
||||
if (pPlayer->nMaskAmount == 150 && pPlayer->nPlayer == nLocalPlayer)
|
||||
{
|
||||
PlayAlert(GStrings("TXT_EX_MASKEX"));
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
static void doPlayerBreath(Player* const pPlayer)
|
||||
{
|
||||
const auto pPlayerActor = pPlayer->pActor;
|
||||
|
@ -1550,9 +1544,6 @@ void AIPlayer::Tick(RunListEvent* ev)
|
|||
|
||||
if (pPlayer->nHealth > 0)
|
||||
{
|
||||
if (pPlayer->nMaskAmount > 0)
|
||||
doPlayerMask(pPlayer);
|
||||
|
||||
if (!pPlayer->invincibility)
|
||||
doPlayerBreath(pPlayer);
|
||||
|
||||
|
|
Loading…
Reference in a new issue