src/game/Laptop/Insurance_Contract.cc
void DailyUpdateOfInsuredMercs()
{
	FOR_EACH_IN_TEAM(s, OUR_TEAM)
	{
		//if the merc has life insurance
		if (s->usLifeInsurance)
		{
			//if the merc wasn't just hired
			if ((INT16)GetWorldDay() != s->iStartOfInsuranceContract)
			{
				//if the contract has run out of time
				if (GetTimeRemainingOnSoldiersInsuranceContract(s) <= 0)
				{
					//if the soldier isn't dead
					if (!IsMercDead(GetProfile(s->ubProfile)))
					{
						s->usLifeInsurance = 0;
						s->iTotalLengthOfInsuranceContract = 0;
						s->iStartOfInsuranceContract = 0;
					}
				}
			}
		}
	}
}
// determines if a merc will run out of their insurance contract
determines if a merc will run out of their insurance contract
determines if a merc will run out of their insurance contract
void DailyUpdateOfInsuredMercs()
{
	FOR_EACH_IN_TEAM(s, OUR_TEAM)
	{
		if (s->usLifeInsurance)
		{
			if ((INT16)GetWorldDay() != s->iStartOfInsuranceContract)
			{
				if (GetTimeRemainingOnSoldiersInsuranceContract(s) <= 0)
				{
					if (!IsMercDead(GetProfile(s->ubProfile)))
					{
						s->usLifeInsurance = 0;
						s->iTotalLengthOfInsuranceContract = 0;
						s->iStartOfInsuranceContract = 0;
					}
				}
			}
		}
	}
}
void DailyUpdateOfInsuredMercs ( ) { FOR_EACH_IN_TEAM ( s , OUR_TEAM ) { if ( s -> usLifeInsurance ) { if ( ( INT16 ) GetWorldDay ( ) != s -> iStartOfInsuranceContract ) { if ( GetTimeRemainingOnSoldiersInsuranceContract ( s ) <= 0 ) { if ( ! IsMercDead ( GetProfile ( s -> ubProfile ) ) ) { s -> usLifeInsurance = 0 ; s -> iTotalLengthOfInsuranceContract = 0 ; s -> iStartOfInsuranceContract = 0 ; } } } } } }
determines if a merc will run out of their insurance contract
determines if a merc will run out of their insurance contract
//if the merc has life insurance //if the merc wasn't just hired //if the contract has run out of time //if the soldier isn't dead