Yep, that should work, if you want it to...
I should point out, as it was pointed out to me, that tmpPW, and tmpPW2 are not both needed, it could just as easily read:
I should point out, as it was pointed out to me, that tmpPW, and tmpPW2 are not both needed, it could just as easily read:
Code:
// declaration here
int_t tmpPw;
if (TerrainType(theLoc)==0 || TerrainType(theLoc)==7 ) {
// 0=forest, 7=jungle
tmpPw = player[0].publicworkslevel;
tmpPw = tmpPw + 400;
setPW(city[0].owner, tmpPw);
Event:CreateImprovement(city[0].owner,theLoc, 32,0);
//change to plains
}
He meant:
Comment