Question regarding CvCity.cpp file

Joined
Jul 21, 2003
Messages
7,819
Location
Adelaide, South Australia
Hi guys. Still working on my CvInfosPlus mod for BtS v3.17, and I noticed a little note the developers added to the code in CvCity.cpp. They mention that, when it comes to
int CvCity::getBaseYieldRateModifier
, if you want to add anything new,
player->invalidateYieldRankCache()
needs to be called first. Now, I'm no great shakes when it comes to C++, but I was wondering if someone can tell me if I need to call this before or after the addition I make. Also, in what context do I need to add it. This wasn't an issue for me in Warlords, but it's clearly an issue now-and anything you can do to assist would be much appreciated. Thanks :).

Aussie.
 
Top Bottom