Small direction fix
Hopefully fixes the direction flickering when using a base gun holdout
This commit is contained in:
1 parent
65f6ab54dc
commit
af7151883c
1 file changed
+5
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user