- quick band-aid fix for the Ironlich/Whirlwind spawning problem: Set special1 to 60 in AWhirlwind::BeginPlay.

This commit is contained in:
Christoph Oelckers 2016-02-08 13:38:16 +01:00
parent 7658508e90
commit cbe4e2deca

View file

@ -20,6 +20,10 @@ class AWhirlwind : public AActor
DECLARE_CLASS (AWhirlwind, AActor)
public:
int DoSpecialDamage (AActor *target, int damage, FName damagetype);
void BeginPlay()
{
special1 = 60;
}
};
IMPLEMENT_CLASS(AWhirlwind)
@ -129,7 +133,6 @@ DEFINE_ACTION_FUNCTION(AActor, A_LichAttack)
{
mo->AddZ(-32*FRACUNIT, false);
mo->tracer = target;
mo->special1 = 60;
mo->special2 = 50; // Timer for active sound
mo->health = 20*TICRATE; // Duration
S_Sound (self, CHAN_BODY, "ironlich/attack3", 1, ATTN_NORM);