small typo in the code?

gdambrauskas

Warlord
Joined
Mar 15, 2010
Messages
123
Location
New York
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.
 
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.

Yes, though it will only effect diagnostic info provided when Chipotle is in effect, not the actual gameplay. I'll correct it, if nobody else beats me to it. Thanks for pointing it out.
 
Back
Top Bottom