From 12eea9ed69ed15726b101c193b2644af4584426c Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 7 Jun 2016 14:52:44 +0200 Subject: [PATCH] Remove magic number in getMaxActivationDistance --- apps/openmw/mwworld/worldimp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index cb6f8b195b..f84386ae40 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -1005,7 +1005,7 @@ namespace MWWorld return static_cast(mActivationDistanceOverride); static const int iMaxActivateDist = getStore().get().find("iMaxActivateDist")->getInt(); - return iMaxActivateDist * 5.f / 4.f; + return static_cast(iMaxActivateDist); } MWWorld::Ptr World::getFacedObject()