]> git.pond.sub.org Git - empserver/commit
Fix load, unload, lload, lunload not to give away civilians
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 4 Jan 2009 10:59:10 +0000 (11:59 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 6 Jan 2009 17:48:04 +0000 (18:48 +0100)
commit92a366ce24908e8125ae7e6d3049889303fb84dd
tree9b2232e017d739638f3e6aa7105b600a4741f2c2
parent430ce903d3719577215ca2cca0a9cc529b543e67
Fix load, unload, lload, lunload not to give away civilians

The game generally doesn't let you give away civilians.  But the check
in load_comm_ok() for that compared the sector old owner to the player
instead of the ship's or land unit's owner, which is incorrect for
foreign ships or land units.  Fix that.

Also make fix the message there not to assume that the civilians are
owned by the player.  This can't currently happen, but will when these
commands support use by deities properly.
src/lib/commands/load.c