mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-13 12:40:04 +00:00
Fix for bug 1685
This commit is contained in:
parent
45af34d189
commit
f754e06be9
@ -428,10 +428,10 @@ namespace MWMechanics
|
||||
|
||||
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++;
|
||||
|
||||
// TODO: check if actor is aware / has line of sight
|
||||
if (greetingTimer >= GREETING_SHOULD_START)
|
||||
{
|
||||
mSaidGreeting = Greet_InProgress;
|
||||
|
Loading…
x
Reference in New Issue
Block a user