]> git.pond.sub.org Git - empserver/commit
Fix cargo giveaway in load, lload, unload, lunload and tend
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 14 Sep 2008 12:03:11 +0000 (08:03 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 15 Sep 2008 23:40:43 +0000 (19:40 -0400)
commit8cf32c485443ff87287ff05ed3c4f8bbdae0d298
tree03fda36b5bdd0365ba88ef0969291d85b24f5e1b
parentd2b1bef0f51959791d47e6fa1d80fd5191d224a2
Fix cargo giveaway in load, lload, unload, lunload and tend

Use unit_give_away() in gift().  This fixes a number of bugs:

* Nukes on planes weren't given away along with the plane.

* Likewise for land units on land units (can't happen in the stock
  game).

* Mission was not cleared by unload land/plane, lunload land/plane,
  and lload plane, except for planes on land units.

* Wing and army were never cleared.

It also happens to suppress information on planes given away along
with their land unit carriers.  Shrug.
src/lib/commands/load.c
src/lib/commands/tend.c