- fixed: A_Print and related functions should not make a use state chain succeed.
- fixed: APowerIronFeet must continuously reset the player's air supply. SVN r2370 (trunk)
This commit is contained in:
parent
32f3d00514
commit
e2ce20a445
3 changed files with 20 additions and 4 deletions
|
|
@ -750,10 +750,6 @@ void APowerIronFeet::AbsorbDamage (int damage, FName damageType, int &newdamage)
|
|||
if (damageType == NAME_Drowning)
|
||||
{
|
||||
newdamage = 0;
|
||||
if (Owner->player != NULL)
|
||||
{
|
||||
Owner->player->mo->ResetAirSupply ();
|
||||
}
|
||||
}
|
||||
else if (Inventory != NULL)
|
||||
{
|
||||
|
|
@ -761,6 +757,21 @@ void APowerIronFeet::AbsorbDamage (int damage, FName damageType, int &newdamage)
|
|||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// APowerIronFeet :: DoEffect
|
||||
//
|
||||
//===========================================================================
|
||||
|
||||
void APowerIronFeet::DoEffect ()
|
||||
{
|
||||
if (Owner->player != NULL)
|
||||
{
|
||||
Owner->player->mo->ResetAirSupply ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Strife Environment Suit Powerup -------------------------------------------
|
||||
|
||||
IMPLEMENT_CLASS (APowerMask)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue