bool CvCity::isNearbyFeature(FeatureTypes feature) const
{
int xCoord = getX();
int yCoord = getY();
for(int x = -2; x < 3; x++)
{
for(int y = -2; y < 3; y++)
{
int relXCoord = xCoord + x;
int relYCoord = yCoord + y;
if (abs(x) == 2 && abs(y) == 2)
{
CvPlot* plot = GC.getMap().plot(relXCoord,relYCoord);
if (plot->getFeatureType() == feature)
{
return true;
}
}
}
}
return false;
}
(This is where you say something)
I've almost entirely got the XML working. Now there's something that goes wrong when the game tries to 'Init Fonts'.