Simplify multifire() to silence compiler warning
This commit is contained in:
parent
7f4a5d0630
commit
d741c45560
1 changed files with 1 additions and 3 deletions
|
@ -75,7 +75,6 @@ multifire(void)
|
||||||
int shots;
|
int shots;
|
||||||
int dam;
|
int dam;
|
||||||
int totaldefdam = 0;
|
int totaldefdam = 0;
|
||||||
int fshipno;
|
|
||||||
int vshipno;
|
int vshipno;
|
||||||
double prb;
|
double prb;
|
||||||
natid vict;
|
natid vict;
|
||||||
|
@ -194,7 +193,6 @@ multifire(void)
|
||||||
pr("Ship #%d is crippled!\n", item.ship.shp_uid);
|
pr("Ship #%d is crippled!\n", item.ship.shp_uid);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
fshipno = fship.shp_uid;
|
|
||||||
} else if (attacker == targ_land) {
|
} else if (attacker == targ_land) {
|
||||||
if (!getsect(item.sect.sct_x, item.sect.sct_y, &fsect))
|
if (!getsect(item.sect.sct_x, item.sect.sct_y, &fsect))
|
||||||
continue;
|
continue;
|
||||||
|
@ -297,7 +295,7 @@ multifire(void)
|
||||||
}
|
}
|
||||||
if (fship.shp_effic < 60) {
|
if (fship.shp_effic < 60) {
|
||||||
pr("Ship #%d is crippled (%d%%)\n",
|
pr("Ship #%d is crippled (%d%%)\n",
|
||||||
fshipno, fship.shp_effic);
|
fship.shp_uid, fship.shp_effic);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
range = shp_fire_range(&fship);
|
range = shp_fire_range(&fship);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue