mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 05:06:41 +00:00
Mark unchanging static as const
This commit is contained in:
parent
66c9b6c199
commit
ef64587cbf
1 changed files with 1 additions and 1 deletions
|
@ -380,7 +380,7 @@ namespace MWMechanics
|
|||
return;
|
||||
|
||||
// Play a random voice greeting if the player gets too close
|
||||
static int iGreetDistanceMultiplier = MWBase::Environment::get().getWorld()->getStore()
|
||||
static const int iGreetDistanceMultiplier = MWBase::Environment::get().getWorld()->getStore()
|
||||
.get<ESM::GameSetting>().find("iGreetDistanceMultiplier")->mValue.getInteger();
|
||||
|
||||
float helloDistance = static_cast<float>(actorStats.getAiSetting(CreatureStats::AI_Hello).getModified() * iGreetDistanceMultiplier);
|
||||
|
|
Loading…
Reference in a new issue