From ebedef49c9f52f985396b9680f8af14d13ffa302 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Wed, 28 Jul 2010 19:45:06 +0200 Subject: [PATCH] removed a special case, that wasn't a special case (MW Scripting for Dummies seems to be wrong here) --- apps/openmw/mwscript/statsextensions.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwscript/statsextensions.cpp b/apps/openmw/mwscript/statsextensions.cpp index 727c48c71..997e2473a 100644 --- a/apps/openmw/mwscript/statsextensions.cpp +++ b/apps/openmw/mwscript/statsextensions.cpp @@ -533,9 +533,8 @@ namespace MWScript extensions.registerInstruction (modCurrent + dynamics[i], "l", opcodeModCurrentDynamic+i, opcodeModCurrentDynamicExplicit+i); - if (i==0) // GetMagickaGetRatio and GetFatigueGetRatio don't exist in original MW - extensions.registerFunction (get + dynamics[i] + getRatio, 'f', "", - opcodeGetDynamicGetRatio+i, opcodeGetDynamicGetRatioExplicit+i); + extensions.registerFunction (get + dynamics[i] + getRatio, 'f', "", + opcodeGetDynamicGetRatio+i, opcodeGetDynamicGetRatioExplicit+i); } }