mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
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;
|
||||
}
|
||||
|
||||
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 ESM::Dialogue *dial = store.get<ESM::Dialogue>().find(topic);
|
||||
|
||||
|
|
Loading…
Reference in a new issue