mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix: ASD deploys tanks if there are any in reserve, instead of prioritizing jeeps (by rftr).
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9190 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -7072,16 +7072,17 @@ void InitializeGroup( const GROUP_TYPE groupType, const UINT8 groupSize, UINT8 &
|
||||
|
||||
if ( asdUpgrade && groupSize > 0 )
|
||||
{
|
||||
if ( gGameExternalOptions.fASDAssignsTanks && ASDSoldierUpgradeToTank( ) )
|
||||
{
|
||||
troopCount--;
|
||||
tankCount++;
|
||||
}
|
||||
|
||||
if ( gGameExternalOptions.fASDAssignsJeeps && ASDSoldierUpgradeToJeep( ) )
|
||||
{
|
||||
troopCount--;
|
||||
jeepCount++;
|
||||
}
|
||||
else if ( gGameExternalOptions.fASDAssignsTanks && ASDSoldierUpgradeToTank( ) )
|
||||
{
|
||||
troopCount--;
|
||||
tankCount++;
|
||||
}
|
||||
|
||||
if ( gGameExternalOptions.fASDAssignsRobots && ASDSoldierUpgradeToRobot() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user