]> git.pond.sub.org Git - empserver/commit
Don't let POGO (#0) navigate and march ghosts
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 16 Jul 2011 11:06:17 +0000 (13:06 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 16 Jul 2011 11:47:48 +0000 (13:47 +0200)
commit617cb41f66e65966e66743c11e7a64465eefa235
treeb6bf0b24f3ba78393e288dc1a3e33f2c800b508d
parent45d090b8c392b2d49be25cfe9f6c35446e287b58
Don't let POGO (#0) navigate and march ghosts

POGO can navigate dead ships, and march dead land units.  The ghosts
even get sighted and interdicted, and can hit mines (landmines only
until commit fe372539, v4.3.27).  Noted for ships in commit 9100af0b.
Has always been broken.  Fix by making shp_sel() and lnd_sel()
explicitly reject ghosts.

Same code pattern also exists in pln_sel, but dead plains fail the
efficiency test, so it's harmless there.  Apply the same fix anyway.
src/lib/subs/lndsub.c
src/lib/subs/plnsub.c
src/lib/subs/shpsub.c