1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 18:37:08 +00:00

Remove magic number in getMaxActivationDistance

This commit is contained in:
scrawl 2016-06-07 14:52:44 +02:00
parent b079db7913
commit 12eea9ed69

View File

@ -1005,7 +1005,7 @@ namespace MWWorld
return static_cast<float>(mActivationDistanceOverride);
static const int iMaxActivateDist = getStore().get<ESM::GameSetting>().find("iMaxActivateDist")->getInt();
return iMaxActivateDist * 5.f / 4.f;
return static_cast<float>(iMaxActivateDist);
}
MWWorld::Ptr World::getFacedObject()