From 160da0b149c0b6b0a2f395a9e2d0bc9f3603b7e4 Mon Sep 17 00:00:00 2001 From: Allofich Date: Tue, 4 Oct 2016 22:44:47 +0900 Subject: [PATCH] Treat 0-weight armor as light armor in some respects --- apps/openmw/mwclass/armor.cpp | 3 --- apps/openmw/mwclass/npc.cpp | 1 - 2 files changed, 4 deletions(-) diff --git a/apps/openmw/mwclass/armor.cpp b/apps/openmw/mwclass/armor.cpp index 867e14bd9..fb2615bed 100644 --- a/apps/openmw/mwclass/armor.cpp +++ b/apps/openmw/mwclass/armor.cpp @@ -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; diff --git a/apps/openmw/mwclass/npc.cpp b/apps/openmw/mwclass/npc.cpp index 52debfb34..9e7b568fa 100644 --- a/apps/openmw/mwclass/npc.cpp +++ b/apps/openmw/mwclass/npc.cpp @@ -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: