(V_CIVIL, V_MILIT, V_SHELL, V_GUN, V_PETROL, V_IRON, V_DUST, V_BAR,

V_FOOD, V_OIL, V_LCM, V_HCM, V_UW, V_RAD, V_ITEM): Remove, use item
types instead.
This commit is contained in:
Markus Armbruster 2004-08-17 16:12:31 +00:00
parent 09def8f156
commit 8ef7f35a56
17 changed files with 64 additions and 81 deletions

View file

@ -196,12 +196,12 @@ commdamage(register int amt, int dam, int vtype)
{
int lost;
if (vtype == V_BAR && opt_SUPER_BARS)
if (vtype == I_BAR && opt_SUPER_BARS)
return amt;
lost = amt - effdamage(amt, dam);
if (vtype == V_MILIT || vtype == V_CIVIL || vtype == V_UW)
if (vtype == I_MILIT || vtype == I_CIVIL || vtype == I_UW)
lost = ldround(people_damage * lost, 1);
return amt - lost;
}