]> git.pond.sub.org Git - empserver/commit
update: Saner rounding of sector building money and work
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 7 Jun 2016 19:10:18 +0000 (21:10 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 17:59:58 +0000 (19:59 +0200)
commit8b1cc6cb477c5e0faabc69b2814db175024adc0b
treee3ed97df61811d89a6fe2903374c1ecec514ec5d
parentae2ae938b59056734ef706fe18334816c9b05ade
update: Saner rounding of sector building money and work

buildeff() rounds work and money up.  Until recently, fractions could
only occur on tear-down, but with customized costs they can now also
occur on build-up.

The previous commit changed unit building to round money and work
randomly.  Before, money was rounded down, and work was rounded up.

Round them randomly for sectors as well, for consistency.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
include/prototypes.h
src/lib/update/sect.c
tests/smoke/final.xdump
tests/smoke/journal.log
tests/update/final.xdump
tests/update/journal.log