1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-12 22:14:42 +00:00

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)