Don't make NPCs or player speak while underwater

(Fixes #3851)
0.6.1
Allofich 8 years ago
parent 2f866fadcf
commit 315ad54b29

@ -633,6 +633,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…
Cancel
Save