Skip to content

Commit a36cba3

Browse files
tore29OmniBlade
authored andcommitted
Added ifndef
1 parent 4d00950 commit a36cba3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tiberiandawn/scenarioini.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,11 +1698,12 @@ static void Create_Units(void)
16981698
}
16991699
}
17001700

1701+
#ifndef USE_RA_AI // This prevents the AI from building vehicles when the RA AI is used in Skirmish. (Tore)
17011702
/*---------------------------------------------------------------------
17021703
Set the house's max # units (this is used in the Mission_Timed_Hunt())
17031704
---------------------------------------------------------------------*/
1704-
// Disable this as it will force MaxUnit to 10 preventing AI from building vehicles in skirmish (Tore)
1705-
//hptr->MaxUnit = MPlayerUnitCount * scaleval;
1705+
hptr->MaxUnit = MPlayerUnitCount * scaleval;
1706+
#endif // USE_RA_AI
17061707

17071708
/*---------------------------------------------------------------------
17081709
Create units for this house

0 commit comments

Comments
 (0)