fire: Always clear mission when firing
Mission is cleared only when firing at a target that is out of range. Screwed up when missions were added in Chainsaw. Always clear it when firing. Matches torpedo. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
6d3106a582
commit
7b700e82c6
3 changed files with 7 additions and 24 deletions
|
@ -286,6 +286,7 @@ multifire(void)
|
|||
}
|
||||
dam = shp_fire(&fship);
|
||||
}
|
||||
fship.shp_mission = 0;
|
||||
putship(fship.shp_uid, &fship);
|
||||
if (CANT_HAPPEN(dam < 0)) {
|
||||
pr("Klick! ...\n");
|
||||
|
@ -315,6 +316,7 @@ multifire(void)
|
|||
}
|
||||
|
||||
dam = lnd_fire(&fland);
|
||||
fland.lnd_mission = 0;
|
||||
putland(fland.lnd_uid, &fland);
|
||||
if (CANT_HAPPEN(dam < 0)) {
|
||||
pr("Klick! ...\n");
|
||||
|
@ -350,20 +352,6 @@ multifire(void)
|
|||
}
|
||||
if (trange > range2) {
|
||||
pr("Target out of range.\n");
|
||||
switch (type) {
|
||||
case EF_SECTOR:
|
||||
break;
|
||||
case EF_LAND:
|
||||
fland.lnd_mission = 0;
|
||||
putland(fland.lnd_uid, &fland);
|
||||
break;
|
||||
case EF_SHIP:
|
||||
fship.shp_mission = 0;
|
||||
putship(fship.shp_uid, &fship);
|
||||
break;
|
||||
default:
|
||||
CANT_REACH();
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue