forked from teamnwah/openmw-tes3coop
Merge pull request #215 from OpenMW/master
Add OpenMW commits up to 9 May 2017
This commit is contained in:
commit
2eb5221472
1 changed files with 6 additions and 0 deletions
|
@ -645,6 +645,12 @@ namespace MWDialogue
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (actor.getClass().isNpc() && MWBase::Environment::get().getWorld()->isSwimming(actor))
|
||||||
|
{
|
||||||
|
// NPCs don't talk while submerged
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const MWWorld::ESMStore &store = MWBase::Environment::get().getWorld()->getStore();
|
const MWWorld::ESMStore &store = MWBase::Environment::get().getWorld()->getStore();
|
||||||
const ESM::Dialogue *dial = store.get<ESM::Dialogue>().find(topic);
|
const ESM::Dialogue *dial = store.get<ESM::Dialogue>().find(topic);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue