Skip to content

Commit

Permalink
Merge pull request #2942 from CombatExtended-Continued/bipodDoesntDro…
Browse files Browse the repository at this point in the history
…pPawn

Fix bipodded weapons causing pawns to drop carried pawns
  • Loading branch information
N7Huntsman authored Jan 14, 2024
2 parents 4e37bb9 + cc0c958 commit ffc3bf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/CombatExtended/CombatExtended/Comps/BipodComp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public bool ShouldSetUp
if (Controller.settings.AutoSetUp)
{
var varA = this.parent.TryGetComp<CompFireModes>();
result = (((varA.CurrentAimMode == Props.catDef.autosetMode) | (!Props.catDef.useAutoSetMode && varA.CurrentAimMode != AimMode.Snapshot)) && !IsSetUpRn);
Pawn pawn = ((Pawn_EquipmentTracker)this.ParentHolder).pawn;
result = (((varA.CurrentAimMode == Props.catDef.autosetMode) | (!Props.catDef.useAutoSetMode && varA.CurrentAimMode != AimMode.Snapshot)) && !IsSetUpRn && !PawnUtility.IsCarryingPawn(pawn));
}
else
{
Expand Down

0 comments on commit ffc3bf1

Please sign in to comment.