mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Disable contract renewal in UB
This commit is contained in:
@@ -12748,6 +12748,10 @@ void HandleShadingOfLinesForContractMenu( void )
|
|||||||
SOLDIERTYPE* pSoldier = gCharactersList[ bSelectedContractChar ].usSolID;
|
SOLDIERTYPE* pSoldier = gCharactersList[ bSelectedContractChar ].usSolID;
|
||||||
const bool multipleMercsSelected = (gSelectedSoldiers.size() > 0) ? true : false;
|
const bool multipleMercsSelected = (gSelectedSoldiers.size() > 0) ? true : false;
|
||||||
|
|
||||||
|
#ifdef JA2UB
|
||||||
|
// No contract renewal in UB
|
||||||
|
const bool atLeastOneAIMmerc = false;
|
||||||
|
#else
|
||||||
bool atLeastOneAIMmerc = false;
|
bool atLeastOneAIMmerc = false;
|
||||||
if (pSoldier->ubWhatKindOfMercAmI == MERC_TYPE__AIM_MERC)
|
if (pSoldier->ubWhatKindOfMercAmI == MERC_TYPE__AIM_MERC)
|
||||||
{
|
{
|
||||||
@@ -12765,6 +12769,7 @@ void HandleShadingOfLinesForContractMenu( void )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // JA2UB
|
||||||
|
|
||||||
// is guy in AIM? and well enough to talk and make such decisions?
|
// is guy in AIM? and well enough to talk and make such decisions?
|
||||||
if( (atLeastOneAIMmerc) && ( pSoldier->stats.bLife >= OKLIFE ) )
|
if( (atLeastOneAIMmerc) && ( pSoldier->stats.bLife >= OKLIFE ) )
|
||||||
|
|||||||
Reference in New Issue
Block a user