mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 19:39:41 +00:00
Don't recover normalise speed setting every frame
This commit is contained in:
parent
5e9bd743a5
commit
8abe92fe41
1 changed files with 2 additions and 1 deletions
|
@ -2372,7 +2372,8 @@ void CharacterController::update(float duration, bool animationOnly)
|
|||
moved.x() *= scale;
|
||||
moved.y() *= scale;
|
||||
|
||||
if (mPtr.getClass().isNpc() && !Settings::Manager::getBool("normalise race speed", "Game"))
|
||||
static const bool normalizeSpeed = Settings::Manager::getBool("normalise race speed", "Game");
|
||||
if (mPtr.getClass().isNpc() && !normalizeSpeed)
|
||||
{
|
||||
const ESM::NPC* npc = mPtr.get<ESM::NPC>()->mBase;
|
||||
const ESM::Race* race = world->getStore().get<ESM::Race>().find(npc->mRace);
|
||||
|
|
Loading…
Reference in a new issue