mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Generals no longer become officers, as that would make it easier to identify them.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7187 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -6595,8 +6595,9 @@ BOOLEAN ShowSoldierRoleSymbol(SOLDIERTYPE* pSoldier)
|
|||||||
sYPos += 20;
|
sYPos += 20;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// is this guy an (non-vip) officer?
|
|
||||||
else if ( pSoldier->usSoldierFlagMask & SOLDIER_ENEMY_OFFICER )
|
// is this guy an officer?
|
||||||
|
if ( pSoldier->usSoldierFlagMask & SOLDIER_ENEMY_OFFICER )
|
||||||
{
|
{
|
||||||
// Add bars
|
// Add bars
|
||||||
iBack = RegisterBackgroundRect( BGND_FLAG_SINGLE, NULL, sXPos, sYPos, (INT16)(sXPos + 20 ), (INT16)(sYPos + 20 ) );
|
iBack = RegisterBackgroundRect( BGND_FLAG_SINGLE, NULL, sXPos, sYPos, (INT16)(sXPos + 20 ), (INT16)(sYPos + 20 ) );
|
||||||
|
|||||||
@@ -1738,8 +1738,7 @@ BOOLEAN TacticalCopySoldierFromCreateStruct( SOLDIERTYPE *pSoldier, SOLDIERCREAT
|
|||||||
if ( !NumSoldiersWithFlagInSector( ENEMY_TEAM, SOLDIER_VIP ) && !NumSoldiersWithFlagInSector( CIV_TEAM, SOLDIER_VIP ) && (gWorldSectorX != gMercProfiles[GENERAL].sSectorX || gWorldSectorY != gMercProfiles[GENERAL].sSectorY) )
|
if ( !NumSoldiersWithFlagInSector( ENEMY_TEAM, SOLDIER_VIP ) && !NumSoldiersWithFlagInSector( CIV_TEAM, SOLDIER_VIP ) && (gWorldSectorX != gMercProfiles[GENERAL].sSectorX || gWorldSectorY != gMercProfiles[GENERAL].sSectorY) )
|
||||||
{
|
{
|
||||||
// nope, so this guy will become the VIP
|
// nope, so this guy will become the VIP
|
||||||
// generals are also officers...
|
pSoldier->usSoldierFlagMask |= SOLDIER_VIP;
|
||||||
pSoldier->usSoldierFlagMask |= (SOLDIER_ENEMY_OFFICER | SOLDIER_VIP);
|
|
||||||
}
|
}
|
||||||
// a VIP has bodyguards
|
// a VIP has bodyguards
|
||||||
else if ( NumSoldiersWithFlagInSector( ENEMY_TEAM, SOLDIER_BODYGUARD ) < gGameExternalOptions.usEnemyGeneralsBodyGuardsNumber )
|
else if ( NumSoldiersWithFlagInSector( ENEMY_TEAM, SOLDIER_BODYGUARD ) < gGameExternalOptions.usEnemyGeneralsBodyGuardsNumber )
|
||||||
|
|||||||
Reference in New Issue
Block a user