empserver/include
Markus Armbruster f1042f82f1 march attack assault: Hit mines like ships do
When ships enter a sector with sea mines, any minesweepers sweep, then
hit mines, and finally all ships (including the minesweepers) hit
mines.  Sweeping in a sector (navigate sub-command 'm') works the same
without the final step.

When land units enter a sector with land mines, any engineers sweep,
and then all land units (including the engineers) hit mines.  Sweeping
in a sector (march sub-command 'm') works the same, which means
non-engineers can hit mines then.  Broken in Empire 2.

Actually broken for ships too then.  4.0.17 fixed ships, but neglected
to fix land units.

Change the land unit code to work like the ship code.  Fixes march
sub-command 'm' not to expose non-engineers to mines.  Changes march,
attack and assault with option INTERDICT_ATT enabled to expose
engineers twice.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2015-02-28 16:13:15 +01:00
..
actofgod.h Clean up superfluous includes 2014-02-16 13:19:26 +01:00
budg.h Update copyright notice 2014-01-02 14:33:48 +01:00
chance.h Fix PRNG seeding to resist guessing 2013-05-08 06:55:21 +02:00
com.h Update copyright notice 2014-01-02 14:33:48 +01:00
combat.h Remove option TREATIES 2014-02-16 11:44:14 +01:00
commands.h Update copyright notice 2014-01-02 14:33:48 +01:00
commodity.h Update copyright notice 2014-01-02 14:33:48 +01:00
damage.h Update copyright notice 2014-01-02 14:33:48 +01:00
distribute.h Update copyright notice 2014-01-02 14:33:48 +01:00
econfig-spec.h sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
empio.h Update copyright notice 2014-01-02 14:33:48 +01:00
empobj.h unit: Drop ulist member chrp 2015-02-28 16:13:15 +01:00
empthread.h Update copyright notice 2014-01-02 14:33:48 +01:00
file.h file: New ef_typedstr_eq(), factored out of obj_changed() 2015-02-01 16:53:00 +01:00
game.h Update copyright notice 2014-01-02 14:33:48 +01:00
ioqueue.h Update copyright notice 2014-01-02 14:33:48 +01:00
item.h Update copyright notice 2014-01-02 14:33:48 +01:00
journal.h Update copyright notice 2014-01-02 14:33:48 +01:00
land.h march attack assault: Hit mines like ships do 2015-02-28 16:13:15 +01:00
loan.h Update copyright notice 2014-01-02 14:33:48 +01:00
lost.h Update copyright notice 2014-01-02 14:33:48 +01:00
lwp.h Clean up superfluous includes 2014-02-16 13:19:26 +01:00
map.h Update copyright notice 2014-01-02 14:33:48 +01:00
match.h Update copyright notice 2014-01-02 14:33:48 +01:00
misc.h player: Drop long-disabled code to resolve IP addresses 2015-02-01 16:52:59 +01:00
mission.h Update copyright notice 2014-01-02 14:33:48 +01:00
nat.h player: Drop long-disabled code to resolve IP addresses 2015-02-01 16:52:59 +01:00
news.h Remove option TREATIES 2014-02-16 11:44:14 +01:00
nsc.h nsc: Turn NSC_HIDDEN into a flag 2015-02-01 16:52:59 +01:00
nuke.h Update copyright notice 2014-01-02 14:33:48 +01:00
optlist.h Update copyright notice 2014-01-02 14:33:48 +01:00
path.h path: New DIR_BACK() 2014-02-16 12:00:18 +01:00
plague.h Update copyright notice 2014-01-02 14:33:48 +01:00
plane.h Update copyright notice 2014-01-02 14:33:48 +01:00
player.h player: Drop long-disabled code to resolve IP addresses 2015-02-01 16:52:59 +01:00
power.h Update copyright notice 2014-01-02 14:33:48 +01:00
product.h Update copyright notice 2014-01-02 14:33:48 +01:00
proto.h Update copyright notice 2014-01-02 14:33:48 +01:00
prototypes.h navigate march: Drop do_unit_move() parameter together 2015-02-28 16:13:14 +01:00
queue.h gen: New emp_quelen(), replacing open-coded counting loops 2015-02-28 16:13:14 +01:00
retreat.h retreat: Move function declarations to retreat.h 2014-02-16 13:19:26 +01:00
sect.h subs: Make shp_check_nav() more like lnd_check_mar() 2015-02-28 16:12:54 +01:00
server.h Update copyright notice 2014-01-02 14:33:48 +01:00
service.h Update copyright notice 2014-01-02 14:33:48 +01:00
ship.h navigate: Require all ships to start in the same sector 2015-02-28 16:13:14 +01:00
tel.h Update copyright notice 2014-01-02 14:33:48 +01:00
testing.h tests: New test-suite-only command __cmd 2014-01-19 10:16:24 +01:00
trade.h Update copyright notice 2014-01-02 14:33:48 +01:00
types.h subs: Make shp_check_nav() more like lnd_check_mar() 2015-02-28 16:12:54 +01:00
unit.h unit: Drop ulist member chrp 2015-02-28 16:13:15 +01:00
update.h Update copyright notice 2014-01-02 14:33:48 +01:00
version.h Update copyright notice 2014-01-02 14:33:48 +01:00
xdump.h empdump: Omit redundant data from export, new -c includes it 2015-02-01 16:53:00 +01:00
xy.h Update copyright notice 2014-01-02 14:33:48 +01:00