]> git.pond.sub.org Git - empserver/commit
edit: Teleport planes and land units to carrier on load
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 3 Feb 2013 13:59:00 +0000 (14:59 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 6 Jun 2013 17:55:02 +0000 (19:55 +0200)
commitef2e2d08a24f4e8e5c91fa53f4068c2985ef3d54
tree28bb93a4b7540c201c9569b58e441e33a3e4aa59
parent3dceefbbc94a412470c112454e6c898ec881f6c7
edit: Teleport planes and land units to carrier on load

Edit lets deities load units onto remote carriers, resulting in a
carriers having cargo in another sector.  Not good.  Cargo gets
teleported to its carrier belatedly when the carrier moves.

Better let edit take care of the teleport.

Also tell the deity that he just caused a teleport.  Necessary to give
the deity a chance to catch unexpected changes, e.g. a player moving a
plane right before the deity edits it.  Watching out for such changes
is especially important with non-interactive edit.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
include/unit.h
src/lib/subs/actofgod.c
src/lib/subs/unitsub.c
tests/actofgod/actofgod.xdump
tests/actofgod/geninput.pl
tests/actofgod/journal.log