]> git.pond.sub.org Git - empserver/commit
Make lload require own sector and lunload own land unit
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 5 Jan 2009 14:02:21 +0000 (15:02 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 6 Jan 2009 17:43:07 +0000 (18:43 +0100)
commitbf2fd042abba571d41d7e5fa3f953475e3de4695
tree5fe124df7a6d8e187b39550ae2f84c3cfbd62ebf
parent17d19266dcbe1b63aa8881e1cb022a6480048ba2
Make lload require own sector and lunload own land unit

This is for consistency with load and unload.

Before, you could use lunload for allied land units and lload in
allied sectors, but the command failed when stuff was loaded in allied
sectors.  Doing that with lload no longer fails the command, because
the check that does that in load_comm_land() is now masked by the new
checks in lload().  Note that loading with lunload still fails the
command; that inconsistency will be removed in a later commit.

load_plane_land() already refused to load planes from foreign sectors.
This commit makes that check redundant, so remove it.  Functional
change: lload now refuses to load foreign planes silently, unless both
land unit and plane were named by number.  This is consistent with
load.
src/lib/commands/load.c