(fuel, load, prod, max_population, shp_nav_one_sector,

nav_loadship, upd_buildeff): Identify BIG_CITY
(IS_BIG_CITY) by using packing type of UPKG instead of
opt_BIG_CITY and sector type of SCT_CAPITAL.
This commit is contained in:
Ron Koenderink 2005-11-14 13:52:12 +00:00
parent d581485d32
commit a2798857cf
8 changed files with 36 additions and 40 deletions

View file

@ -46,11 +46,9 @@ max_population(float research, int desig, int eff)
int maxpop = dchr[desig].d_maxpop;
int rmax;
if (opt_BIG_CITY) {
/* city efficiency limits maximum population */
if (dchr[desig].d_pkg == UPKG)
maxpop *= 1 + 9.0 * eff / 100;
}
/* city efficiency limits maximum population */
if (IS_BIG_CITY(desig))
maxpop *= 1 + 9.0 * eff / 100;
if (opt_RES_POP) {
/* research limits maximum population */