mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
Set the TalkedToPc flag for voiced dialogue (Fixes #3346)
This commit is contained in:
parent
2b521b8436
commit
4854d6b093
@ -629,7 +629,8 @@ namespace MWDialogue
|
|||||||
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);
|
||||||
|
|
||||||
Filter filter(actor, 0, false);
|
const MWMechanics::CreatureStats& creatureStats = actor.getClass().getCreatureStats(actor);
|
||||||
|
Filter filter(actor, 0, creatureStats.hasTalkedToPlayer());
|
||||||
const ESM::DialInfo *info = filter.search(*dial, false);
|
const ESM::DialInfo *info = filter.search(*dial, false);
|
||||||
if(info != NULL)
|
if(info != NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user