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:
parent
7dc130b7ac
commit
b23c52951f
1 changed files with 1 additions and 0 deletions
|
@ -246,6 +246,7 @@ launch_missile(struct plnstr *pp)
|
||||||
if (msl_launch(pp, EF_SECTOR, "sector", sx, sy, sect.sct_own,
|
if (msl_launch(pp, EF_SECTOR, "sector", sx, sy, sect.sct_own,
|
||||||
&sublaunch) < 0)
|
&sublaunch) < 0)
|
||||||
return RET_OK;
|
return RET_OK;
|
||||||
|
getsect(sx, sy, §);
|
||||||
if (!msl_hit(pp, SECT_HARDTARGET, EF_SECTOR,
|
if (!msl_hit(pp, SECT_HARDTARGET, EF_SECTOR,
|
||||||
N_SCT_MISS, N_SCT_SMISS, sublaunch, sect.sct_own))
|
N_SCT_MISS, N_SCT_SMISS, sublaunch, sect.sct_own))
|
||||||
CANT_REACH();
|
CANT_REACH();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue