mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 11:39:41 +00:00
Fix for bug 1685
This commit is contained in:
parent
45af34d189
commit
f754e06be9
1 changed files with 2 additions and 2 deletions
|
@ -428,10 +428,10 @@ namespace MWMechanics
|
||||||
|
|
||||||
if (mSaidGreeting == Greet_None)
|
if (mSaidGreeting == Greet_None)
|
||||||
{
|
{
|
||||||
if (playerDistSqr <= helloDistance*helloDistance)
|
if ((playerDistSqr <= helloDistance*helloDistance) && MWBase::Environment::get().getWorld()->getLOS(player, actor)
|
||||||
|
&& MWBase::Environment::get().getMechanicsManager()->awarenessCheck(player, actor))
|
||||||
greetingTimer++;
|
greetingTimer++;
|
||||||
|
|
||||||
// TODO: check if actor is aware / has line of sight
|
|
||||||
if (greetingTimer >= GREETING_SHOULD_START)
|
if (greetingTimer >= GREETING_SHOULD_START)
|
||||||
{
|
{
|
||||||
mSaidGreeting = Greet_InProgress;
|
mSaidGreeting = Greet_InProgress;
|
||||||
|
|
Loading…
Reference in a new issue