1
0
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:
Michał Ściubidło 2014-07-30 07:47:09 +01:00
parent 45af34d189
commit f754e06be9

View File

@ -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;