]> git.pond.sub.org Git - empserver/commit
Fix loopholes that let you load and unload foreign commodities
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 4 Jan 2009 11:00:45 +0000 (12:00 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 6 Jan 2009 17:48:04 +0000 (18:48 +0100)
commita78f71ff99d8e15e341140912861f1fa8748e15a
tree3933ca8a9d4c37f5bfbf36b8ca5b2eb20c85329c
parent92a366ce24908e8125ae7e6d3049889303fb84dd
Fix loopholes that let you load and unload foreign commodities

The Chainsaw 3 feature to let you load/unload to a specific amount
through a negative amount argument created loopholes: it let you load
your ships in friendly sectors with the unload command, and unload
friendly ships with the load command.  Likewise for land units, with
allied instead of friendly, of course.

Empire 4.0.0 fixed that for the case of loading a land unit from an
allied sector.  Get rid of that check, and fix it for good in
load_comm_ok().
src/lib/commands/load.c