(multifire): Remove some dead code.
This commit is contained in:
parent
5cb994b4fe
commit
8b8fba25ed
1 changed files with 1 additions and 7 deletions
|
@ -305,7 +305,6 @@ multifire(void)
|
||||||
y = vsect.sct_y;
|
y = vsect.sct_y;
|
||||||
}
|
}
|
||||||
if (attacker == targ_ship) {
|
if (attacker == targ_ship) {
|
||||||
shots = -1; /* convert to max later */
|
|
||||||
if (fship.shp_own != player->cnum) {
|
if (fship.shp_own != player->cnum) {
|
||||||
pr("Not your ship!\n");
|
pr("Not your ship!\n");
|
||||||
continue;
|
continue;
|
||||||
|
@ -368,12 +367,7 @@ multifire(void)
|
||||||
gun = min(gun, shell * 2);
|
gun = min(gun, shell * 2);
|
||||||
gun = min(gun, mil / 2);
|
gun = min(gun, mil / 2);
|
||||||
gun = max(gun, 1);
|
gun = max(gun, 1);
|
||||||
if (shots > gun || shots < 0)
|
shots = gun;
|
||||||
shots = gun;
|
|
||||||
else if (shots == 0) {
|
|
||||||
pr("No shots fired.\n");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
guneff = seagun(fship.shp_effic, shots);
|
guneff = seagun(fship.shp_effic, shots);
|
||||||
dam = (int)guneff;
|
dam = (int)guneff;
|
||||||
shell -= ldround(((double)shots) / 2.0, 1);
|
shell -= ldround(((double)shots) / 2.0, 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue