RogerBacon
King
- Joined
- Nov 16, 2003
- Messages
- 649
Hi,
I loaded up the SDK for a quick build without making any changes. Well, I got 35 errors. Most I think were caused by the conversion to VS2008 the "int" was stripped from all of the loop variables. That was pretty easy to fix. There was only one error left after that. In CvGameInterface.cpp at line 1996 "iI undeclared indetifier". Is taht code supposed to be in the loop above where iI is the loop counter? Did everyone else get these errors when using an unmodified SDK?
I loaded up the SDK for a quick build without making any changes. Well, I got 35 errors. Most I think were caused by the conversion to VS2008 the "int" was stripped from all of the loop variables. That was pretty easy to fix. There was only one error left after that. In CvGameInterface.cpp at line 1996 "iI undeclared indetifier". Is taht code supposed to be in the loop above where iI is the loop counter? Did everyone else get these errors when using an unmodified SDK?
Code:
for (int iI = 0; iI < GC.getNumHurryInfos(); iI++)
{
if (pCity->canHurry((HurryTypes)iI))
{
szBuffer = gDLL->getText("TXT_KEY_HURRY_PRODUCTION");
int iHurryGold = pCity->hurryGold((HurryTypes)iI);
if (iHurryGold > 0)
{
szBuffer += gDLL->getText("TXT_KEY_HURRY_PRODUCTION_GOLD", iHurryGold);
}
int iHurryPopulation = pCity->hurryPopulation((HurryTypes)iI);
if (iHurryPopulation > 0)
{
szBuffer += gDLL->getText("TXT_KEY_HURRY_PRODUCTION_POP", iHurryPopulation);
}
aFlyoutItems.push_back(CvFlyoutMenuData(FLYOUT_HURRY, iI, pPlot->getX_INLINE(), pPlot->getY_INLINE(), szBuffer));
}
}
if (pCity->canConscript())
{
UnitTypes eConscriptUnit = pCity->getConscriptUnit();
if (eConscriptUnit != NO_UNIT)
{
szBuffer = gDLL->getText("TXT_KEY_DRAFT_UNIT", GC.getUnitInfo(eConscriptUnit).getDescription(), pCity->getConscriptPopulation());
aFlyoutItems.push_back(CvFlyoutMenuData(FLYOUT_CONSCRIPT, iI, pPlot->getX_INLINE(), pPlot->getY_INLINE(), szBuffer));
}
}