ASD deployment fix (by rftr):

- fix: robots, jeeps, and tanks now appear in garrison reinforcement and patrol groups (if the ASD and these units are enabled)
- fix: ASD continues to purchase jeeps if tanks are disabled
- removed some magic numbers in Strategic AI.cpp

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8982 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2021-04-27 04:00:07 +00:00
parent cb074f4549
commit 02d2c92f66
3 changed files with 52 additions and 24 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ void ASDDecideOnPurchases()
needed_jeep = min( 10, 2 + highestplayerprogress / 10 );
// if we already unlocked tanks, we no longer want jeeps - they are replaced by tanks
if ( gASD_Flags & ASDFACT_TANK_UNLOCKED )
if ( (gASD_Flags & ASDFACT_TANK_UNLOCKED) && gGameExternalOptions.fASDAssignsTanks )
{
needed_jeep = 0;
}