forked from teamnwah/openmw-tes3coop
Remove magic number in getMaxActivationDistance
This commit is contained in:
parent
b079db7913
commit
12eea9ed69
1 changed files with 1 additions and 1 deletions
|
@ -1005,7 +1005,7 @@ namespace MWWorld
|
||||||
return static_cast<float>(mActivationDistanceOverride);
|
return static_cast<float>(mActivationDistanceOverride);
|
||||||
|
|
||||||
static const int iMaxActivateDist = getStore().get<ESM::GameSetting>().find("iMaxActivateDist")->getInt();
|
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()
|
MWWorld::Ptr World::getFacedObject()
|
||||||
|
|
Loading…
Reference in a new issue