mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
If we manually disguise a merc, immediately test the disguise
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8215 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -9785,6 +9785,10 @@ BOOLEAN ApplyClothes( SOLDIERTYPE * pSoldier, UINT16 usItem, UINT16 usPointsToUs
|
||||
|
||||
// apply covert properties depending on our disguise
|
||||
pSoldier->ApplyCovert( TRUE );
|
||||
|
||||
// to inform the player on whether this will work, test the disguise immediately (but only if we are now disguised in the first place)
|
||||
if ( pSoldier->usSoldierFlagMask & (SOLDIER_COVERT_CIV | SOLDIER_COVERT_SOLDIER) )
|
||||
pSoldier->SpySelfTest();
|
||||
}
|
||||
|
||||
return( TRUE );
|
||||
|
||||
Reference in New Issue
Block a user