Fix hand-to-hand health damage reduction

This commit is contained in:
Chris Robinson 2013-07-28 16:07:09 -07:00
parent 39507e3f0f
commit 3744850545

View file

@ -448,7 +448,7 @@ namespace MWClass
if(object.isEmpty())
{
if(ishealth)
damage /= getArmorRating(ptr);
damage /= std::min(1.0f + getArmorRating(ptr)/std::max(1.0f, damage), 4.0f);
sndMgr->playSound3D(ptr, "Hand To Hand Hit", 1.0f, 1.0f);
}
else if(ishealth)