]> git.pond.sub.org Git - empserver/commit
edit: Make unit owner change away from POGO work
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 29 Dec 2013 09:37:11 +0000 (10:37 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 2 Jan 2014 13:07:22 +0000 (14:07 +0100)
commit2936e07f41c80b8b6c51d4e51b81e1a4887a43a5
tree256ff0973dc2dd8412821ae8079b699a44be02b5
parent3404b9ce7f97787b32ea4a407383828c10fefdb2
edit: Make unit owner change away from POGO work

Units owned by POGO are not in use.  Giving a unit to POGO destroys
it.  The opposite doesn't work, however: the unit prewrite hooks give
it right back to POGO, because efficiency is below the minimum.  Make
it work by also increasing efficiency to minimum.

Note that you can't use this to create a unit that doesn't already
exist in the respective file.  That's because edit's second argument
selects from existing objects only.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/edit.c
tests/actofgod/actofgod.xdump
tests/actofgod/geninput.pl
tests/actofgod/journal.log