gdambrauskas
Warlord
Code:
if (iNeededExplorers > 0)
{
szTempBuffer.Format(L"\nNeeded explorers = %d (has %d)", iNeededExplorers, iHasExplorers);
szString.append(szTempBuffer);
}
int iNeededHunters = GET_PLAYER(pPlot->getOwnerINLINE()).AI_neededHunters(pPlot->area());
int iHasHunters = GET_PLAYER(pPlot->getOwnerINLINE()).AI_totalAreaUnitAIs(pPlot->area(), UNITAI_HUNTER);
if (iNeededExplorers > 0)
{
szTempBuffer.Format(L"\nNeeded hunters = %d (has %d)", iNeededHunters, iHasHunters);
szString.append(szTempBuffer);
}
i assume 2nd 'if' should be for hunters.