]> git.pond.sub.org Git - empserver/commit
update/ship: Don't let stopped sectors repair foreign ships
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 5 Jun 2016 13:13:11 +0000 (15:13 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 17:59:58 +0000 (19:59 +0200)
commit3b543dac8a7e8194fd2b847d889672c82ed043dc
treec475ff9db6ce19b014c40b46a34d58947c734637
parenta5d90c0184543918742d89353f0d99d2f175f9c3
update/ship: Don't let stopped sectors repair foreign ships

Stopping a sector disables repairs of own ships completely.  Foreign
ships, however, repair just fine, consuming the sector's materials
and, if it's a harbor, its available work.

Disable repair of all ships in stopped sectors.  This is consistent
with plane and land unit repair.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/update/ship.c