Small direction fix

Hopefully fixes the direction flickering when using a base gun holdout
This commit is contained in:
Xyk committed 2025-09-04 14:10:17 -07:00
1 parent 65f6ab54dc
commit af7151883c
1 file changed
+5 -3
+5 -3
View File
@@ -52,9 +52,6 @@ namespace CalamityMod.Projectiles.Typeless
public override void AI()
{
if (!BreakApart)
lastDir = Owner.direction;
float intendedScale = 0.85f;
float spawnAnimTime = 12 + wingNum;
if (time == 0)
@@ -267,6 +264,11 @@ namespace CalamityMod.Projectiles.Typeless
time++;
}
}
public override void PostDraw(Color lightColor)
{
if (!BreakApart)
lastDir = Owner.direction;
}
public override bool PreDraw(ref Color lightColor)
{
float topWingNum = (checkActiveWings() - 1);