Skip to content

Commit

Permalink
Removed unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDorob committed Dec 3, 2024
1 parent ea5b006 commit 22060a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ public virtual float GetTargetHeight(LocalTargetInfo target, Thing cover, bool r
public bool MidBurst => numShotsFired > 0;
protected virtual bool LockRotationAndAngle => MidBurst;

public virtual void ShiftTarget(ShiftVecReport report, bool calculateMechanicalOnly = false, bool isInstant = false, bool midBurst = false)
public void ShiftTarget(ShiftVecReport report, bool calculateMechanicalOnly = false, bool isInstant = false)
{
ShiftTarget(report, report.target.Thing?.TrueCenter() ?? report.target.Cell.ToVector3Shifted(), calculateMechanicalOnly, isInstant);
}
Expand Down
2 changes: 1 addition & 1 deletion Source/SOS2Compat/SOS2Compat/Verb_ShootShipCE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public override bool TryCastShot()
projectileCE = (ShipProjectileCE)ThingMaker.MakeThing(Projectile, null);
}
GenSpawn.Spawn(projectileCE, shootLine.Source, caster.Map);
ShiftTarget(report, pelletMechanicsOnly, instant, midBurst);
ShiftTarget(report, pelletMechanicsOnly, instant);

//New aiming algorithm
projectileCE.canTargetSelf = false;
Expand Down

0 comments on commit 22060a6

Please sign in to comment.