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:
Flugente
2016-05-16 10:31:47 +00:00
parent 6460e9d325
commit 381acc74a4
+4
View File
@@ -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 );