//FfH: Modified by Kael 10/04/2008
// pCity->setHasReligion(eReligion, true, true, false);
if (GC.getGameINLINE().isReligionFounded(eReligion))
{
pCity->setHasReligion(eReligion, true, true, false);
}
else
{
pCity->setHasReligion(eReligion, true, true, false);
GC.getGameINLINE().setHolyCity(eReligion, pCity, true);
}
//FfH: End Modify
This checks right now for if the religion has been founded (already exists anywhere in the world) and will create a holy city if not. Instead, could it check if the religion HAS a holy city, and create one if not? (the difference would be that after razing a Holy City it can be re-established by sending a Disciple out to spread the faith in a new city)