Treat 0-weight armor as light armor in some respects

coverity_scan^2
Allofich 8 years ago
parent 44dffe55ab
commit 160da0b149

@ -146,9 +146,6 @@ namespace MWClass
float epsilon = 0.0005f;
if (ref->mBase->mData.mWeight == 0)
return ESM::Skill::Unarmored;
if (ref->mBase->mData.mWeight <= iWeight * gmst.find ("fLightMaxMod")->getFloat() + epsilon)
return ESM::Skill::LightArmor;

@ -1160,7 +1160,6 @@ namespace MWClass
switch(boots->getClass().getEquipmentSkill(*boots))
{
case ESM::Skill::Unarmored:
case ESM::Skill::LightArmor:
return (name == "left") ? "FootLightLeft" : "FootLightRight";
case ESM::Skill::MediumArmor:

Loading…
Cancel
Save