(M_TORP_SHELLS, SHP_TORP_SHELLS): Rename.

This commit is contained in:
Markus Armbruster 2004-08-17 18:45:04 +00:00
parent cdad6db4ac
commit e1ebe41686
4 changed files with 20 additions and 20 deletions

View file

@ -562,11 +562,11 @@ perform_mission(coord x, coord y, natid victim, struct emp_qelem *list,
if (gun < 1)
continue;
shell = sp->shp_item[I_SHELL];
if (shell < M_TORP_SHELLS)
if (shell < SHP_TORP_SHELLS)
shell += supply_commod(sp->shp_own,
sp->shp_x, sp->shp_y, I_SHELL,
M_TORP_SHELLS - shell);
if (shell < M_TORP_SHELLS)
SHP_TORP_SHELLS - shell);
if (shell < SHP_TORP_SHELLS)
continue;
range = sp->shp_effic * techfact(sp->shp_tech,
@ -579,7 +579,7 @@ perform_mission(coord x, coord y, natid victim, struct emp_qelem *list,
if (!line_of_sight((s_char **)0, x, y, gp->x, gp->y))
continue;
sp->shp_item[I_SHELL] = shell - M_TORP_SHELLS;
sp->shp_item[I_SHELL] = shell - SHP_TORP_SHELLS;
mobcost = sp->shp_effic * 0.01 * sp->shp_speed;
mobcost = (480.0 / (mobcost +
techfact(sp->shp_tech, mobcost)));