Arrrgh - I am always forgetting that I am using 'generalized' functions for the otherwise repetitive stuff. Sorry for that - here comes the very short function that is missing above:
Code:
int_f TileHasFacility(location_t theLoc) {
location_t tmpLoc;
tmpLoc = theLoc;
if(TileHasImprovement(tmpLoc, TerrainImprovementDB(TILEIMP_FORTIFICATIONS))
|| TileHasImprovement(tmpLoc, TerrainImprovementDB(TILEIMP_AIR_BASES))
) {
return 1;
}
return 0;
}
).
ARGGG!!!!
Oh! that is supposed to be my head
Comment