Resource icon

Final Frontier Bug Fix for No Building Overflow 2016-10-05

By T-hawk of CivFanatics.com 10 December 2009

This version of CvGameCoreDLL fixes the bug apparent in Final Frontier that cities do not get overflow hammers after completing a building. The bug is that the cost of a building increases for the next copy *before* overflow is calculated. So you only get overflow if you have hammers beyond the cost of the _next_ copy of the building. This patch corrects that behavior to make overflow behave properly as in regular Civ 4.

To use this, simply place CvGameCoreDLL.dll in your Beyond the Sword\Mods\Final Frontier\Assets folder. Civ 4 will automatically use it at runtime with the mod.

The fix is to swap these two lines of code in function CvCity::popOrder(). The changed source file is included in this zip.

setNumRealBuilding(eConstructBuilding, getNumRealBuilding(eConstructBuilding) + 1);
iProductionNeeded = getProductionNeeded(eConstructBuilding);
Author
T-hawk
Downloads
279
Views
279
First release
Last update
Rating
0.00 star(s) 0 ratings
Top Bottom