]> git.pond.sub.org Git - empserver/commit
Make ships and land units spot planes along the flight path
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 25 Sep 2008 14:05:07 +0000 (10:05 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 1 Feb 2009 16:14:39 +0000 (17:14 +0100)
commit5de052e4114c54bec5ff94008511236dea22d144
treef2bfb49827c4d04708b2f0adfc01740371e05c43
parent2ab91d8b6b6e7225b5fc801229b185fda3fad17c
Make ships and land units spot planes along the flight path

Sectors already spotted overflying planes in every sector along the
flight path, but ships and land units did that only in the target
sector, once if you got any ships there, in ac_encounter(), once if
you got any land units there, in ac_encounter(), once for ships firing
flak, in ac_shipflak(), and once for land units firing flak, in
ac_landflak().  Remove all that, and generalize ac_encounter()'s code
for sectors to spot planes to include ships and land units.  Unlike
before, ships and land units don't spot allied planes.
src/lib/subs/aircombat.c