Merged revision(s) 7014 from branches/ja2_source_official_2014:

- Fix: snitches report mercenaries and vehicles complain about pay even if they receive none
- Fix: if NO_ENEMY_DETECTION_WITHOUT_RECON is FALSE, every sector is reported to contain enemies

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7015 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2014-03-03 20:23:13 +00:00
parent 17ed67f578
commit 95b1c783eb
2 changed files with 12 additions and 16 deletions
+4 -5
View File
@@ -177,14 +177,13 @@ BOOLEAN MercThinksHisMoraleIsTooLow( SOLDIERTYPE *pSoldier )
BOOLEAN MercIsOwedTooMuchMoney( UINT8 ubProfileID )
{
if(gMercProfiles[ ubProfileID ].iBalance >= gMercProfiles[ ubProfileID ].sSalary * gMoraleSettings.bValues[MORALE_OWED_MONEY_DAYS])
// merc complains if he he actually receives pay and did not get paid long enough
if( gMercProfiles[ ubProfileID ].sSalary > 0 && gMercProfiles[ ubProfileID ].iBalance >= gMercProfiles[ ubProfileID ].sSalary * gMoraleSettings.bValues[MORALE_OWED_MONEY_DAYS])
{
return(TRUE);
}
else
{
return(FALSE);
}
return(FALSE);
}
BOOLEAN MercThinksPlayerIsInactiveTooLong( UINT8 ubProfileID )