mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
- To make it easier to search for dialogue and understand what a line is supposed to mean, changed a few dialogue enums.
- Merged IsMercOnTeam...(...) functions into one - Fix: during hiring, AIM mercs only complained about their hated ones if these were already in the country, thus ignoring other mercs in transit git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8512 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -529,7 +529,7 @@ BOOLEAN WillMercRenew( SOLDIERTYPE *pSoldier, BOOLEAN fSayQuote )
|
||||
continue;
|
||||
|
||||
// is this buddy on the team?
|
||||
if( IsMercOnTeamAndAlive( (UINT8) bMercID) )
|
||||
if( IsMercOnTeam( (UINT8) bMercID, FALSE, FALSE ) )
|
||||
{
|
||||
fBuddyAround = TRUE;
|
||||
|
||||
@@ -565,7 +565,7 @@ BOOLEAN WillMercRenew( SOLDIERTYPE *pSoldier, BOOLEAN fSayQuote )
|
||||
if( bMercID < 0 )
|
||||
continue;
|
||||
|
||||
if( IsMercOnTeamAndInOmertaAlreadyAndAlive( (UINT8) bMercID ) )
|
||||
if( IsMercOnTeam( (UINT8) bMercID, TRUE, TRUE ) )
|
||||
{
|
||||
if ( gMercProfiles[ pSoldier->ubProfile ].bHatedCount[ i ] == 0 )
|
||||
{
|
||||
@@ -609,7 +609,7 @@ BOOLEAN WillMercRenew( SOLDIERTYPE *pSoldier, BOOLEAN fSayQuote )
|
||||
|
||||
if ( bMercID >= 0 )
|
||||
{
|
||||
if ( IsMercOnTeamAndInOmertaAlreadyAndAlive( (UINT8) bMercID ) )
|
||||
if ( IsMercOnTeam( (UINT8) bMercID, TRUE, TRUE ) )
|
||||
{
|
||||
if ( gMercProfiles[ pSoldier->ubProfile ].bLearnToHateCount == 0 )
|
||||
{
|
||||
|
||||
@@ -2586,7 +2586,8 @@ void InitManualMobileRestrictions()
|
||||
}
|
||||
|
||||
|
||||
extern BOOLEAN IsMercOnTeam(UINT8 ubMercID);
|
||||
extern BOOLEAN IsMercOnTeam(UINT8 ubMercID, BOOLEAN aAlreadyInCountry, BOOLEAN aAlive );
|
||||
|
||||
// @brief Calculates the contingent for mobile militia.
|
||||
// Calculates current active mobile militia and compares to variable maximum limit which can be altered by external data.
|
||||
// @param printMessage Set to TRUE to get a screenmessage telling the player which maximum is reached. No message is generated when the maximum is not yet reached (<=100).
|
||||
@@ -2650,7 +2651,7 @@ UINT8 GetMobileMilitiaQuota( BOOLEAN printMessage )
|
||||
UINT16 rebelStructSize = sizeof ( gProfilesRPC );
|
||||
for (UINT16 rebelPC = 0; rebelPC < rebelStructSize; rebelPC++)
|
||||
{
|
||||
if ( IsMercOnTeam ( gProfilesRPC[ rebelPC ].ProfilId ) ) iNumRebelsInPlayerTeam++;
|
||||
if ( IsMercOnTeam ( gProfilesRPC[ rebelPC ].ProfilId, FALSE, FALSE ) ) iNumRebelsInPlayerTeam++;
|
||||
}
|
||||
}
|
||||
//if ( IsMercOnTeam ( IRA ) ) iNumRebelsInPlayerTeam++;
|
||||
|
||||
@@ -412,7 +412,7 @@ void MercDailyUpdate()
|
||||
// WANNE: Only send mails from the original 1.13 merc, and not from the wildfire merc,
|
||||
// otherwise we get wrong mails cause of hardcoded Email.edt structure!!!!!
|
||||
UINT16 numOriginalProfiles = 255;
|
||||
for( cnt = 0; cnt < numOriginalProfiles; cnt++)
|
||||
for( cnt = 0; cnt < numOriginalProfiles; ++cnt)
|
||||
{
|
||||
pProfile = &(gMercProfiles[ cnt ]);
|
||||
|
||||
@@ -426,7 +426,7 @@ void MercDailyUpdate()
|
||||
pProfile->uiPrecedentQuoteSaid = 0;
|
||||
|
||||
// skip anyone currently on the player's team
|
||||
if ( IsMercOnTeam( (UINT8) cnt ))
|
||||
if ( IsMercOnTeam( (UINT8) cnt, FALSE, FALSE ))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user