mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix: robot could get the 'covert' property when added to the team
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7628 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2031,8 +2031,11 @@ BOOLEAN RecruitEPC( UINT8 ubCharNum )
|
||||
// Set whatkind of merc am i
|
||||
pNewSoldier->ubWhatKindOfMercAmI = MERC_TYPE__EPC;
|
||||
|
||||
// Flugente: people recruited in Arulco are known to the enemy as civilians or even soldiers. So they will be covert when recruited. Of course, this is not for the rebels...
|
||||
pNewSoldier->usSoldierFlagMask |= (SOLDIER_COVERT_CIV|SOLDIER_COVERT_NPC_SPECIAL);
|
||||
// Flugente: people recruited in Arulco are known to the enemy as civilians or even soldiers. So they will be covert when recruited. Of course, this is not for the rebels/vehicles/robots
|
||||
if ( !(pNewSoldier->flags.uiStatusFlags & (SOLDIER_ROBOT | SOLDIER_VEHICLE) ) )
|
||||
{
|
||||
pNewSoldier->usSoldierFlagMask |= (SOLDIER_COVERT_CIV | SOLDIER_COVERT_NPC_SPECIAL);
|
||||
}
|
||||
|
||||
UpdateTeamPanelAssignments( );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user