Fixed Gamma Head direction rotation issues

This commit is contained in:
Dominic committed 2021-10-01 10:58:21 -05:00
1 parent 7451e9294a
commit d5523beaf9
1 file changed
+3
+3
View File
@@ -150,6 +150,9 @@ namespace CalamityMod.Projectiles.Summon
// Direction affecting.
if (target.Center.X - spawnPosition.X < 0)
fireAngle += MathHelper.Pi;
if (projectile.direction == (target.Center.X < spawnPosition.X).ToDirectionInt())
fireAngle += MathHelper.Pi;
idealRotation = fireAngle;
// Shoot the actual canister.