forked from teamnwah/openmw-tes3coop
Remove incorrect implementation of fGreetDistanceReset
This can't be right. A reset distance of 512 is smaller than the maximum greeting distance for certain NPCs, which would then say greetings non-stop.
This commit is contained in:
parent
716e14a37a
commit
b108fbe986
1 changed files with 2 additions and 4 deletions
|
@ -477,10 +477,8 @@ namespace MWMechanics
|
||||||
|
|
||||||
if (greetingState == MWMechanics::AiWander::Greet_Done)
|
if (greetingState == MWMechanics::AiWander::Greet_Done)
|
||||||
{
|
{
|
||||||
static float fGreetDistanceReset = MWBase::Environment::get().getWorld()->getStore()
|
float resetDist = 2*helloDistance;
|
||||||
.get<ESM::GameSetting>().find("fGreetDistanceReset")->getFloat();
|
if (playerDistSqr >= resetDist*resetDist)
|
||||||
|
|
||||||
if (playerDistSqr >= fGreetDistanceReset*fGreetDistanceReset)
|
|
||||||
greetingState = Greet_None;
|
greetingState = Greet_None;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue