]> git.pond.sub.org Git - empserver/commit
(max_population): New, factored out of max_pop().
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 17 Feb 2005 21:04:08 +0000 (21:04 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 17 Feb 2005 21:04:08 +0000 (21:04 +0000)
commitff67d93711a99187fc28ce247c29c6250362161a
tree0f07449b3b2d9be786449917cadb35b0ed96f86d
parentf8b2860ec5ff605567f39be725288e1e9120897a
(max_population): New, factored out of max_pop().
(max_pop): Use it.  Don't support null argument anymore.
(nati, gen_power): Use max_population() instead of max_pop() with null
argument.
(show_sect_stats): Use max_population() to simplify the code.
(prod, upd_buildeff): Use max_population() to get correct new maximum
population for limiting work when tearing down a big city.
Previously, this was broken in upd_buildeff().  In prod(), it was
broken when the new designation had odd maximum population, which
should not occur.
include/prototypes.h
src/lib/commands/nati.c
src/lib/commands/powe.c
src/lib/commands/prod.c
src/lib/common/res_pop.c
src/lib/subs/show.c
src/lib/update/sect.c