From 3744850545246b0d79cb5dbd4469b7c68353828b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 28 Jul 2013 16:07:09 -0700 Subject: [PATCH] Fix hand-to-hand health damage reduction --- apps/openmw/mwclass/npc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwclass/npc.cpp b/apps/openmw/mwclass/npc.cpp index 8bb332ae1b..f767ac6704 100644 --- a/apps/openmw/mwclass/npc.cpp +++ b/apps/openmw/mwclass/npc.cpp @@ -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)