mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Female admins and troops can appear in autoresolve.
Requires GameDir >= r2206. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7730 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -284,6 +284,8 @@ enum
|
||||
HUMAN_SKULL,
|
||||
TANK_WRECK,
|
||||
CREATURE_SKULL,
|
||||
ADMINF_FACE,
|
||||
TROOPF_FACE,
|
||||
ELITEF_FACE,
|
||||
MILITIA1F_FACE,
|
||||
MILITIA2F_FACE,
|
||||
@@ -2520,7 +2522,14 @@ void CreateAutoResolveInterface()
|
||||
{
|
||||
gpEnemies[index].pSoldier = TacticalCreateArmyTroop();
|
||||
gpEnemies[index].uiVObjectID = gpAR->iFaces;
|
||||
gpEnemies[index].usIndex = TROOP_FACE;
|
||||
if ( gpEnemies[i].pSoldier->ubBodyType == REGFEMALE )
|
||||
{
|
||||
gpEnemies[index].usIndex = TROOPF_FACE;
|
||||
}
|
||||
else
|
||||
{
|
||||
gpEnemies[index].usIndex = TROOP_FACE;
|
||||
}
|
||||
gpEnemies[index].pSoldier->sSectorX = gpAR->ubSectorX;
|
||||
gpEnemies[index].pSoldier->sSectorY = gpAR->ubSectorY;
|
||||
swprintf( gpEnemies[index].pSoldier->name, gpStrategicString[ STR_AR_TROOP_NAME ] );
|
||||
@@ -2529,7 +2538,14 @@ void CreateAutoResolveInterface()
|
||||
{
|
||||
gpEnemies[index].pSoldier = TacticalCreateAdministrator();
|
||||
gpEnemies[index].uiVObjectID = gpAR->iFaces;
|
||||
gpEnemies[index].usIndex = ADMIN_FACE;
|
||||
if ( gpEnemies[i].pSoldier->ubBodyType == REGFEMALE )
|
||||
{
|
||||
gpEnemies[index].usIndex = ADMINF_FACE;
|
||||
}
|
||||
else
|
||||
{
|
||||
gpEnemies[index].usIndex = ADMIN_FACE;
|
||||
}
|
||||
gpEnemies[index].pSoldier->sSectorX = gpAR->ubSectorX;
|
||||
gpEnemies[index].pSoldier->sSectorY = gpAR->ubSectorY;
|
||||
swprintf( gpEnemies[index].pSoldier->name, gpStrategicString[ STR_AR_ADMINISTRATOR_NAME ] );
|
||||
|
||||
Reference in New Issue
Block a user