First we need to conclude any changes in the wonder thread, then I'll attach a wonders.txt with all the changes in it.
edit: forgot this IS the wonder thread
sint32 buildingIndex;
if(wrec->GetBuildingEverywhereIndex(buildingIndex)) {
m_wonderBuildings |= ((uint64)1 << buildingIndex);
}
//EMOD to actually create the wonder building
sint32 abuildingIndex;
if(wrec->GetActualBuildingEverywhereIndex(abuildingIndex)) {
for(i = 0; i < m_all_cities->Num(); i++) {
if (!m_all_cities->Access(i).GetData()->GetCityData()->HaveImprovement(abuildingIndex)) {
m_all_cities->Access(i).GetData()->GetCityData()->AddImprovement(abuildingIndex);
}
}
}
//end EMOD
Leave a comment: