- Sync scripting branch with what was in trunk on Sunday. I believe that would be revision 2739.
SVN r2790 (scripting)
This commit is contained in:
commit
99670b708c
317 changed files with 17299 additions and 7273 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)
|
||||
|
|
@ -993,6 +1004,12 @@ void APowerFlight::EndEffect ()
|
|||
|
||||
bool APowerFlight::DrawPowerup (int x, int y)
|
||||
{
|
||||
// If this item got a valid icon use that instead of the default spinning wings.
|
||||
if (Icon.isValid())
|
||||
{
|
||||
return Super::DrawPowerup(x, y);
|
||||
}
|
||||
|
||||
if (EffectTics > BLINKTHRESHOLD || !(EffectTics & 16))
|
||||
{
|
||||
FTextureID picnum = TexMan.CheckForTexture ("SPFLY0", FTexture::TEX_MiscPatch);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue