mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Merge pull request #1283 from Allofich/water
Don't make NPCs or player speak while underwater
This commit is contained in:
commit
5e03e75549
@ -633,6 +633,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…
x
Reference in New Issue
Block a user