empserver/tests/update
Markus Armbruster 589bc1ed1a neweff production work: Fix crash for sea sector
The work required for building sea sectors is zero in sect.config.
When a deity runs neweff or production on a sea sector, e.g. with
"neweff *", buildeff() divides by zero.  Same when a player or deity
runs work with an engineer in a sea sector.  Broken in commit
2ffd7b948 "config: Make work to build sectors configurable", v4.4.0

Fix buildeff() to avoid the division.  Change the required work to 100
in sect.config for good measure.

Cover deity use of neweff and production in tests/update.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2021-01-17 21:24:29 +01:00
..
01-1 neweff production work: Fix crash for sea sector 2021-01-17 21:24:29 +01:00
02-2 update: Don't double-round money, fixing mil pay and more 2017-08-06 20:07:55 +02:00
03-3 budget: Fix treasury tracking 2017-08-06 20:00:00 +02:00
04-4 update: Fix sector maintenance when stopped or broke 2017-08-06 20:08:30 +02:00
05-5 tests/update: New; exercises the update 2017-08-06 14:04:15 +02:00
06-6 budget: Fix for ship, plane, land unit building abroad 2017-08-06 20:08:30 +02:00
07-7 tests/update: New; exercises the update 2017-08-06 14:04:15 +02:00
99-POGO neweff production work: Fix crash for sea sector 2021-01-17 21:24:29 +01:00
final.xdump config: Increase mountain process efficiency from 75% to 100% 2021-01-17 21:24:29 +01:00
journal.log neweff production work: Fix crash for sea sector 2021-01-17 21:24:29 +01:00
server.log update/revolt: Fix land unit casualties 2018-04-29 10:33:48 +02:00
setup-POGO tests/update: Demonstrate take_casualties_from_lands() bug 2018-04-10 16:48:20 +02:00