This commit is contained in:
Markus Armbruster 2006-06-14 18:14:40 +00:00
parent bb2a725b0d
commit 15a1a06101
3 changed files with 2 additions and 4 deletions

View file

@ -73,8 +73,6 @@ newe(void)
uws = (1.0 + uwbrate * etu_per_update) * sect.sct_item[I_UW]; uws = (1.0 + uwbrate * etu_per_update) * sect.sct_item[I_UW];
natp = getnatp(sect.sct_own); natp = getnatp(sect.sct_own);
maxpop = max_pop(natp->nat_level[NAT_RLEV], &sect); maxpop = max_pop(natp->nat_level[NAT_RLEV], &sect);
/* This isn't quite right, since research might rise/fall */
/* during the update, but it's the best we can really do */
work = new_work(&sect, work = new_work(&sect,
total_work(sect.sct_work, etu_per_update, total_work(sect.sct_work, etu_per_update,
civs, sect.sct_item[I_MILIT], uws, civs, sect.sct_item[I_MILIT], uws,

View file

@ -37,7 +37,7 @@
#include "match.h" #include "match.h"
/* /*
* Find NEEDLE in array HAYSTACK[], return its index. * Find element named NEEDLE in array HAYSTACK[], return its index.
* Return M_NOTFOUND if there are no matches, M_NOTUNIQUE if there are * Return M_NOTFOUND if there are no matches, M_NOTUNIQUE if there are
* several. * several.
* Each array element has a pointer to its name stored at offset OFFS. * Each array element has a pointer to its name stored at offset OFFS.

View file

@ -263,7 +263,7 @@ decay_fallout(struct sctstr *sp, int etus)
} }
/* /*
* Produce only a set sector type for a specific nation * Produce for a specific nation
*/ */
void void
produce_sect(int natnum, int etu, int *bp, long p_sect[][2]) produce_sect(int natnum, int etu, int *bp, long p_sect[][2])