official-antistasi-community / A3-Antistasi

Antistasi Community Version - work in progress - Discord https://discord.com/invite/TYDwCRKnKX
https://antistasi.de
Other
226 stars 156 forks source link

Fix inconsistent parameter bug with createAttackForceLand #3286

Closed jaj22 closed 3 months ago

jaj22 commented 3 months ago

What type of PR is this.

  1. [X] Bug
  2. [ ] Change
  3. [ ] Enhancement

What have you changed and why?

createAttackForceLand was supposed to have a troopType parameter back in 3.0 but it wasn't implemented. Used the same slot for tanksOnly, which broke some other uses. This PR fixes both the old bug (never using specops in ground vehicles) and the new one.

Tested all three calls of createAttackForceLand (QRF, attack, tanks) and they now work correctly.

Please specify which Issue this PR Resolves.

closes #XXXX

Please verify the following and ensure all checks are completed.

  1. [X] Have you loaded the mission in LAN host?
  2. [ ] Have you loaded the mission on a dedicated server?