multifire() used shots to print either shell or shells. 4.2.3 removed
its initialization for land unit fire, and commit
22c6fd8b removed it
for ship fire. Fix by just printing shells always.
coord x;
coord y;
int mil;
coord x;
coord y;
int mil;
int dam;
int totaldefdam = 0;
int vshipno;
int dam;
int totaldefdam = 0;
int vshipno;
return RET_FAIL;
}
orig_attacker = attacker = targ_land;
return RET_FAIL;
}
orig_attacker = attacker = targ_land;
} else if (type == EF_SHIP) {
orig_attacker = attacker = targ_ship;
} else if (type == EF_LAND) {
} else if (type == EF_SHIP) {
orig_attacker = attacker = targ_ship;
} else if (type == EF_LAND) {
prb = range2 ? (double)trange / range2 : 1.0;
prb *= prb;
if (chance(prb)) {
prb = range2 ? (double)trange / range2 : 1.0;
prb *= prb;
if (chance(prb)) {
- pr("Wind deflects shell%s.\n", splur(shots));
+ pr("Wind deflects shells.\n");
/* dam = (int)(dam / 2.0);*/
dam *= (90 - (random() % 11)) / 100.0;
if (dam < 0)
/* dam = (int)(dam / 2.0);*/
dam *= (90 - (random() % 11)) / 100.0;
if (dam < 0)
wu(0, vict,
"Country #%d shelled sector %s for %d damage.\n",
player->cnum, xyas(x, y, vict), dam);
wu(0, vict,
"Country #%d shelled sector %s for %d damage.\n",
player->cnum, xyas(x, y, vict), dam);
- pr("Shell%s hit sector %s for %d damage.\n",
- splur(shots), xyas(x, y, player->cnum), dam);
+ pr("Shells hit sector %s for %d damage.\n",
+ xyas(x, y, player->cnum), dam);
/* Ok, it wasn't a bogus target, so do damage. */
if (target != targ_bogus)
sectdamage(&vsect, dam, 0);
/* Ok, it wasn't a bogus target, so do damage. */
if (target != targ_bogus)
sectdamage(&vsect, dam, 0);
player->cnum, prship(&vship),
xyas(vship.shp_x, vship.shp_y, vict), dam);
}
player->cnum, prship(&vship),
xyas(vship.shp_x, vship.shp_y, vict), dam);
}
- pr("Shell%s hit %s in %s for %d damage.\n",
- splur(shots), prsub(&vship),
+ pr("Shells hit %s in %s for %d damage.\n",
+ prsub(&vship),
xyas(vship.shp_x, vship.shp_y, player->cnum), dam);
if (vship.shp_effic < SHIP_MINEFF)
xyas(vship.shp_x, vship.shp_y, player->cnum), dam);
if (vship.shp_effic < SHIP_MINEFF)