empserver/tests/fire
Markus Armbruster 0bdcb5ee19 sect: Keep work percentage without civilians at 100%
We maintain a few sector invariants in sct_prewrite().  Since the
update bypasses sct_prewrite(), it needs to maintain them itself.  The
two should be consistent.

sct_prewrite() resets work percentage of owned sectors to 100% when
there are no civilians.  The update's populace() resets it for unowned
sectors as well, if they have military.

Change sct_prewrite() to reset sct_work = 100 regardless of owner.
Also change sct_oninit() to initialize sct_work = 100, so it doesn't
change on first write.  Update tests/smoke/fairland.xdump for the same
reason.

The massive test output differences are all due to sct_work.

Inconsistencies with the update remain.  They will be fixed next.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-06 19:59:57 +02:00
..
01-sector-1 tests/fire: Cover firing at unused / sunk ships 2015-03-02 08:20:52 +01:00
02-POGO tests/fire: Drop reset of #1's BTUs between sub-tests 2014-01-19 10:16:59 +01:00
03-ship-1 tests/fire: Cover firing at unused / sunk ships 2015-03-02 08:20:52 +01:00
04-POGO tests/fire: Drop reset of #1's BTUs between sub-tests 2014-01-19 10:16:59 +01:00
05-land-1 tests/fire: Cover firing at unused / sunk ships 2015-03-02 08:20:52 +01:00
99-POGO tests/fire: Cover mission clearing 2015-03-02 08:20:51 +01:00
final.xdump sect: Keep work percentage without civilians at 100% 2017-08-06 19:59:57 +02:00
journal.log sect: Keep work percentage without civilians at 100% 2017-08-06 19:59:57 +02:00
server.log tests: Enable running_test_suite by default 2014-01-19 10:09:17 +01:00
setup-POGO tests/fire: Cover mission clearing 2015-03-02 08:20:51 +01:00