Fix launch not to wipe out target sector updates

Launching ABMs updates their base, in mission_pln_equip().  The update
got wiped out when launch_missile() wrote back the target sector,
triggering a seqno mismatch oops.  Harmless with the stock game's
ABMs, because they use neither shells nor petrol.

Fix by re-reading the target sector.
This commit is contained in:
Markus Armbruster 2009-12-26 14:02:50 +01:00
parent 7dc130b7ac
commit b23c52951f

View file

@ -246,6 +246,7 @@ launch_missile(struct plnstr *pp)
if (msl_launch(pp, EF_SECTOR, "sector", sx, sy, sect.sct_own,
&sublaunch) < 0)
return RET_OK;
getsect(sx, sy, &sect);
if (!msl_hit(pp, SECT_HARDTARGET, EF_SECTOR,
N_SCT_MISS, N_SCT_SMISS, sublaunch, sect.sct_own))
CANT_REACH();