]> git.pond.sub.org Git - empserver/commit
Fix bogus message when deity attempts to march foreign land unit
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 13 Jun 2010 15:59:49 +0000 (17:59 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 18 Jul 2010 06:31:20 +0000 (08:31 +0200)
commit7499d0bdee38ad442af024e5a4d777aa9761d4a3
tree41ded70de55a70f3ab591f2d00ab7ddb8640f936
parent8c502d40c6d855dba5214b821edb97e164f37602
Fix bogus message when deity attempts to march foreign land unit

Much of the code assumes that only the land unit's owner can march it.
The assumption is correct, because lnd_mar() leaves foreign land units
behind with a bogus "was disbanded at" message (suppressed for country

It would be nice to let deities march foreign land units, but the
assumption is not trivial to remove.  For now, just avoid the bogus
message.

Historical note: it looks like deities used to be able to march
foreign land units just fine until Empire 2 factored common code out
of navigate, sail and autonav, and updated march to match navigate.
Likewise, it looks like they could board with foreign land units until
Empire 2 factored out common ground combat code.  Commands attack and
assault have always rejected foreign land units, even for deities.
src/lib/subs/lndsub.c