]> git.pond.sub.org Git - empserver/commit
edit: Don't permit putting a land unit or plane on two carriers
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 16 Jan 2013 20:07:21 +0000 (21:07 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 6 Jun 2013 17:52:26 +0000 (19:52 +0200)
commit546e1220e099a2ba37b9468c4b861eb240c6e4aa
treec4c74a42437176c67256e5043de80613db569e6f
parent2b80ce93daf4bd86a2041fcc699e17db6c241f38
edit: Don't permit putting a land unit or plane on two carriers

Only one of struct lndstr members lnd_ship, lnd_land may be
non-negative.  When a deity screws that up, the server oopses.  Be
nice: when setting one, zap the other.

Same for struct plnstr members pln_ship, pln_land.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/edit.c
tests/actofgod/actofgod.xdump
tests/actofgod/server.log