(newe): Fix for max_pop() > 999.
This commit is contained in:
parent
236c29a0c5
commit
41da51e548
1 changed files with 3 additions and 5 deletions
|
@ -67,12 +67,10 @@ newe(void)
|
||||||
if (!player->owner)
|
if (!player->owner)
|
||||||
continue;
|
continue;
|
||||||
if (!sect.sct_off) {
|
if (!sect.sct_off) {
|
||||||
civs = min(999, (int)((obrate * etu_per_update + 1.0)
|
civs = (1.0 + obrate * etu_per_update) * sect.sct_item[I_CIVIL];
|
||||||
* sect.sct_item[I_CIVIL]));
|
uws = (1.0 + uwbrate * etu_per_update) * sect.sct_item[I_UW];
|
||||||
uws = min(999, (int)((uwbrate * etu_per_update + 1.0)
|
|
||||||
* sect.sct_item[I_UW]));
|
|
||||||
natp = getnatp(sect.sct_own);
|
natp = getnatp(sect.sct_own);
|
||||||
maxpop = max_pop((float)natp->nat_level[NAT_RLEV], §);
|
maxpop = max_pop(natp->nat_level[NAT_RLEV], §);
|
||||||
civs = min(civs, maxpop);
|
civs = min(civs, maxpop);
|
||||||
uws = min(uws, maxpop);
|
uws = min(uws, maxpop);
|
||||||
/* This isn't quite right, since research might rise/fall */
|
/* This isn't quite right, since research might rise/fall */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue