1. When adding various python callbacks to the DLL, what (if anything) would I need to add to tell the game which file to use for the calback?
2. In the function below, what does the bolded + underlined 1 do?
If the rest code works the way it seems to, it divides the population, plus the "extra" by either 1 or the population + extra, which is than multiplied back by population when computing total happiness. The 1 seems extra, though, so am curious if anyone knows what it does.
2. In the function below, what does the bolded + underlined 1 do?
Code:
int CvCity::getOvercrowdingPercentAnger(int iExtra) const
{
int iOvercrowding;
int iAnger;
iAnger = 0;
iOvercrowding = (getPopulation() + iExtra) ;
if (iOvercrowding > 0)
{
iAnger += (((iOvercrowding * GC.getPERCENT_ANGER_DIVISOR()) / std::max(1, (getPopulation() + iExtra))) + [B][I][U]1[/U][/I][/B]);
}
return iAnger;
}
If the rest code works the way it seems to, it divides the population, plus the "extra" by either 1 or the population + extra, which is than multiplied back by population when computing total happiness. The 1 seems extra, though, so am curious if anyone knows what it does.