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:
parent
b079db7913
commit
12eea9ed69
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user