mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Mark unchanging static as const
This commit is contained in:
parent
66c9b6c199
commit
ef64587cbf
@ -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…
x
Reference in New Issue
Block a user