IDs use NOBODY, profiles use NO_PROFILE

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6735 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2014-01-07 20:32:51 +00:00
parent 8044ea108d
commit b387091a8c
+6 -6
View File
@@ -1307,35 +1307,35 @@ void HandleSnitchCheck( void )
if( MercThinksDeathRateTooHigh( pSoldier->ubProfile ) ) if( MercThinksDeathRateTooHigh( pSoldier->ubProfile ) )
{ {
// too high, inform // too high, inform
ubSnitchEventsCounter = RememberSnitchableEvent(pSoldier->ubProfile,NOBODY,fSameGroupOnly,SNITCH_DEATH_RATE,SnitchEvents,ubSnitchEventsCounter); ubSnitchEventsCounter = RememberSnitchableEvent(pSoldier->ubProfile,NO_PROFILE,fSameGroupOnly,SNITCH_DEATH_RATE,SnitchEvents,ubSnitchEventsCounter);
} }
// check his morale vs. his morale tolerance once/day (ignores buddies!) // check his morale vs. his morale tolerance once/day (ignores buddies!)
if( MercThinksHisMoraleIsTooLow( pSoldier ) ) if( MercThinksHisMoraleIsTooLow( pSoldier ) )
{ {
// too low, inform // too low, inform
ubSnitchEventsCounter = RememberSnitchableEvent(pSoldier->ubProfile,NOBODY,fSameGroupOnly,SNITCH_LOW_MORALE,SnitchEvents,ubSnitchEventsCounter); ubSnitchEventsCounter = RememberSnitchableEvent(pSoldier->ubProfile,NO_PROFILE,fSameGroupOnly,SNITCH_LOW_MORALE,SnitchEvents,ubSnitchEventsCounter);
} }
// check his opinion about player's reputation // check his opinion about player's reputation
if( MercThinksBadReputationTooHigh( pSoldier->ubProfile ) ) if( MercThinksBadReputationTooHigh( pSoldier->ubProfile ) )
{ {
// too high, inform // too high, inform
ubSnitchEventsCounter = RememberSnitchableEvent(pSoldier->ubProfile,NOBODY,fSameGroupOnly,SNITCH_REPUTATION,SnitchEvents,ubSnitchEventsCounter); ubSnitchEventsCounter = RememberSnitchableEvent(pSoldier->ubProfile,NO_PROFILE,fSameGroupOnly,SNITCH_REPUTATION,SnitchEvents,ubSnitchEventsCounter);
} }
// check his opinion about player activity // check his opinion about player activity
if( MercThinksPlayerIsInactiveTooLong( pSoldier->ubProfile ) ) if( MercThinksPlayerIsInactiveTooLong( pSoldier->ubProfile ) )
{ {
// player inactive, inform // player inactive, inform
ubSnitchEventsCounter = RememberSnitchableEvent(pSoldier->ubProfile,NOBODY,fSameGroupOnly,SNITCH_PROGRESS,SnitchEvents,ubSnitchEventsCounter); ubSnitchEventsCounter = RememberSnitchableEvent(pSoldier->ubProfile,NO_PROFILE,fSameGroupOnly,SNITCH_PROGRESS,SnitchEvents,ubSnitchEventsCounter);
} }
// check if player owes him money // check if player owes him money
if( MercIsOwedTooMuchMoney( pSoldier->ubProfile ) ) if( MercIsOwedTooMuchMoney( pSoldier->ubProfile ) )
{ {
// player owes him money, inform // player owes him money, inform
ubSnitchEventsCounter = RememberSnitchableEvent(pSoldier->ubProfile,NOBODY,fSameGroupOnly,SNITCH_OWED_MONEY,SnitchEvents,ubSnitchEventsCounter); ubSnitchEventsCounter = RememberSnitchableEvent(pSoldier->ubProfile,NO_PROFILE,fSameGroupOnly,SNITCH_OWED_MONEY,SnitchEvents,ubSnitchEventsCounter);
} }
// check if contract is running out, and will not renew // check if contract is running out, and will not renew
@@ -1347,7 +1347,7 @@ void HandleSnitchCheck( void )
// Only do this if they don't want to renew..... // Only do this if they don't want to renew.....
if ( !WillMercRenew( pSoldier, FALSE ) && !(pSoldier->flags.fSignedAnotherContract) ) if ( !WillMercRenew( pSoldier, FALSE ) && !(pSoldier->flags.fSignedAnotherContract) )
{ {
ubSnitchEventsCounter = RememberSnitchableEvent(pSoldier->ubProfile,NOBODY,fSameGroupOnly,SNITCH_GONNA_QUIT,SnitchEvents,ubSnitchEventsCounter); ubSnitchEventsCounter = RememberSnitchableEvent(pSoldier->ubProfile,NO_PROFILE,fSameGroupOnly,SNITCH_GONNA_QUIT,SnitchEvents,ubSnitchEventsCounter);
} }
} }
} }