empserver/include
Markus Armbruster fff476ac4b retreat: Fix group retreat after failed board sinks ship
Group retreat still doesn't work, because when boar() passes a sunk
ship to retreat_ship(), its owner has been reset to POGO already.
This makes it impossible to find the group to retreat.  Instead, it
attempts to retreat ships that sank in the same sector with group
retreat orders and with the same fleet letter assigned.  If any exist,
shp_may_nav() oopses, and prevents actual retreat of these ghosts.

The other retreat conditions don't have this problem, because they
call putship(), which resets the owner, only after retreat_ship().

Making boar() work the same is not practical.  Instead, add an owner
parameter to retreat_ship(), and for symmetry also to retreat_land().

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2015-03-02 08:20:51 +01:00
..
actofgod.h Update copyright notice 2015-02-28 16:21:34 +01:00
budg.h Update copyright notice 2015-02-28 16:21:34 +01:00
chance.h Fix PRNG seeding to resist guessing 2013-05-08 06:55:21 +02:00
com.h Update copyright notice 2015-02-28 16:21:34 +01:00
combat.h Update copyright notice 2015-02-28 16:21:34 +01:00
commands.h Update copyright notice 2015-02-28 16:21:34 +01:00
commodity.h Update copyright notice 2015-02-28 16:21:34 +01:00
damage.h Update copyright notice 2015-02-28 16:21:34 +01:00
distribute.h Update copyright notice 2015-02-28 16:21:34 +01:00
econfig-spec.h Update copyright notice 2015-02-28 16:21:34 +01:00
empio.h Update copyright notice 2015-02-28 16:21:34 +01:00
empobj.h Update copyright notice 2015-02-28 16:21:34 +01:00
empthread.h Update copyright notice 2015-02-28 16:21:34 +01:00
file.h Update copyright notice 2015-02-28 16:21:34 +01:00
game.h Update copyright notice 2015-02-28 16:21:34 +01:00
ioqueue.h Update copyright notice 2015-02-28 16:21:34 +01:00
item.h Update copyright notice 2015-02-28 16:21:34 +01:00
journal.h Update copyright notice 2015-02-28 16:21:34 +01:00
land.h subs: De-duplicate formatting in intelligence_report() 2015-03-02 08:20:50 +01:00
loan.h Update copyright notice 2015-02-28 16:21:34 +01:00
lost.h Update copyright notice 2015-02-28 16:21:34 +01:00
lwp.h Update copyright notice 2015-02-28 16:21:34 +01:00
map.h subs: Move shared code from navi.c to subs 2015-03-02 08:20:47 +01:00
match.h Update copyright notice 2015-02-28 16:21:34 +01:00
misc.h Update copyright notice 2015-02-28 16:21:34 +01:00
mission.h Update copyright notice 2015-02-28 16:21:34 +01:00
nat.h Update copyright notice 2015-02-28 16:21:34 +01:00
news.h Update copyright notice 2015-02-28 16:21:34 +01:00
nsc.h symbol: New symbol_set_fmt() parameter sep, use for show 2015-03-02 08:20:49 +01:00
nuke.h Update copyright notice 2015-02-28 16:21:34 +01:00
optlist.h Update copyright notice 2015-02-28 16:21:34 +01:00
path.h Update copyright notice 2015-02-28 16:21:34 +01:00
plague.h Update copyright notice 2015-02-28 16:21:34 +01:00
plane.h bomb: Fix ship list header for ASW planes 2015-03-02 08:20:49 +01:00
player.h Update copyright notice 2015-02-28 16:21:34 +01:00
power.h Update copyright notice 2015-02-28 16:21:34 +01:00
product.h Update copyright notice 2015-02-28 16:21:34 +01:00
proto.h Update copyright notice 2015-02-28 16:21:34 +01:00
prototypes.h subs: Change pln_damage()'s parameter noisy to string prefix 2015-03-02 08:20:50 +01:00
queue.h Update copyright notice 2015-02-28 16:21:34 +01:00
retreat.h retreat: Fix group retreat after failed board sinks ship 2015-03-02 08:20:51 +01:00
sect.h Update copyright notice 2015-02-28 16:21:34 +01:00
server.h Update copyright notice 2015-02-28 16:21:34 +01:00
service.h Update copyright notice 2015-02-28 16:21:34 +01:00
ship.h retreat: Rewrite automatic retreat code to fix its many bugs 2015-03-02 08:20:48 +01:00
tel.h Update copyright notice 2015-02-28 16:21:34 +01:00
testing.h Update copyright notice 2015-02-28 16:21:34 +01:00
trade.h Update copyright notice 2015-02-28 16:21:34 +01:00
types.h Update copyright notice 2015-02-28 16:21:34 +01:00
unit.h navigate march: Fix use-after-free and other bugs 2015-03-02 08:20:47 +01:00
update.h Update copyright notice 2015-02-28 16:21:34 +01:00
version.h Update copyright notice 2015-02-28 16:21:34 +01:00
xdump.h Update copyright notice 2015-02-28 16:21:34 +01:00
xy.h Update copyright notice 2015-02-28 16:21:34 +01:00