Skip to content

Commit

Permalink
Fix unit spacing of cavalry in siege
Browse files Browse the repository at this point in the history
  • Loading branch information
LiZhenhuan1019 committed Mar 18, 2021
1 parent 2dfbf13 commit 1b73150
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public static bool SpawnTroops_Prefix(int number, bool isReinforcement, bool enf
Formation formation = team.GetFormation(formationClass);
if (formation != null && !(bool)HasBeenPositionedProperty.GetValue(formation))
{
formation.BeginSpawn(count, isMounted);
Mission.Current.SpawnFormation(formation, count, ____spawnWithHorses, isMounted, isReinforcement);
formation.BeginSpawn(count, isMounted && ____spawnWithHorses);
Mission.Current.SpawnFormation(formation, count, ____spawnWithHorses, isMounted && ____spawnWithHorses, isReinforcement);
____spawnedFormations.Add(formation);
}
agentOriginBase.SpawnTroop(____side, true, ____spawnWithHorses, isReinforcement,
Expand Down

0 comments on commit 1b73150

Please sign in to comment.