diff --git a/wadsrc/static/zscript/doom/lostsoul.txt b/wadsrc/static/zscript/doom/lostsoul.txt index 89cefc42a..7d918aa10 100644 --- a/wadsrc/static/zscript/doom/lostsoul.txt +++ b/wadsrc/static/zscript/doom/lostsoul.txt @@ -90,19 +90,19 @@ class BetaSkull : LostSoul extend class Actor { - const SKULLSPEED = 20; + const DEFSKULLSPEED = 20; - void A_SkullAttack(double skullspeed = SKULLSPEED) + void A_SkullAttack(double skullspeed = DEFSKULLSPEED) { if (target == null) return; - if (skullspeed <= 0) skullspeed = SKULLSPEED; + if (skullspeed <= 0) skullspeed = DEFSKULLSPEED; bSkullfly = true; A_PlaySound(AttackSound, CHAN_VOICE); A_FaceTarget(); VelFromAngle(skullspeed); - Vel.Z = (target.pos.Z + target.Height/2 - pos.Z) / DistanceBySpeed(target, speed); + Vel.Z = (target.pos.Z + target.Height/2 - pos.Z) / DistanceBySpeed(target, skullspeed); } void A_BetaSkullAttack()