FIrst attempt I redid it to be:
and nothing happened...off to double check
Code:
MapPoint SpotFound(-1,-1);
CityInfluenceIterator it(point, GetVisionRadius()); //m_sizeIndex GetVisionRadius()
sint32 s;
for(s = 0; s < rec->GetNumShowOnMap(); s++) {
const TerrainImprovementRecord *trec = g_theTerrainImprovementDB->Get(s);
for(it.Start(); !it.End(); it.Next()) {
if(point == it.Pos())
continue;
if(terrainutil_CanPlayerSpecialBuildAt(trec, m_owner, it.Pos())){
if (SpotFound.IsValid()){
Cell *ncell = g_theWorld->GetCell(it.Pos());
Cell *ocell = g_theWorld->GetCell(SpotFound);
if(ncell->GetNumDBImprovements() < ocell->GetNumDBImprovements()
){
SpotFound = it.Pos();
}
} else {
SpotFound = it.Pos();
}
}
}
g_player[m_owner]->CreateSpecialImprovement(rec->GetShowOnMapIndex(s), SpotFound, 0);
}

Comment