From 381acc74a4680a5c84d07207a7fe02116fc7e934 Mon Sep 17 00:00:00 2001 From: Flugente Date: Mon, 16 May 2016 10:31:47 +0000 Subject: [PATCH] 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 --- Tactical/Items.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tactical/Items.cpp b/Tactical/Items.cpp index d50a6a35..47ad0d91 100644 --- a/Tactical/Items.cpp +++ b/Tactical/Items.cpp @@ -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 );