@Thunderbrd
While looking through dll code I saw this in the initialization of city objects:
▬▬▬▬▬▬
~ ~ ~ Previous codelines
bool bFound = false;
if (GC.getGameINLINE().isOption(GAMEOPTION_PERSONALIZED_MAP) && GET_PLAYER(getOwnerINLINE()).isModderOption(MODDEROPTION_USE_LANDMARK_NAMES))
{
for (int iI = 0; iI < NUM_CITY_PLOTS_2; iI++)
{
CvPlot* pLoopPlot = getCityIndexPlot(iI);
if (!pLoopPlot->getLandmarkName().empty() && pLoopPlot->getLandmarkType() != NO_LANDMARK)
{
setName(pLoopPlot->getLandmarkName());
if (!getName().empty())
{
bFound = true;
break;
}
}
}
}
if (!bFound)
/************************************************************************************************/
/* Afforess END */
/************************************************************************************************/
setName(GET_PLAYER(getOwnerINLINE()).getNewCityName());
~ ~ ~ Following codelines
▬▬▬▬▬▬
The bold "if" statement has no content, is that even a legal line in dll?
Doing the same in python would cause some serious damage by breaking the entire function...
The bFound variable isn't used for anything further down in that function either, so allt the red code could be deleted as far as I can see.