forked from teamnwah/openmw-tes3coop
Dialogue: do not filter on disposition for creatures
This commit is contained in:
parent
ed9a9904b4
commit
19dff822f4
1 changed files with 5 additions and 0 deletions
|
@ -123,6 +123,11 @@ bool MWDialogue::Filter::testSelectStructs (const ESM::DialInfo& info) const
|
||||||
|
|
||||||
bool MWDialogue::Filter::testDisposition (const ESM::DialInfo& info) const
|
bool MWDialogue::Filter::testDisposition (const ESM::DialInfo& info) const
|
||||||
{
|
{
|
||||||
|
bool isCreature = (mActor.getTypeName() != typeid (ESM::NPC).name());
|
||||||
|
|
||||||
|
if (isCreature)
|
||||||
|
return true;
|
||||||
|
|
||||||
int actorDisposition = MWBase::Environment::get().getMechanicsManager()->getDerivedDisposition(mActor);
|
int actorDisposition = MWBase::Environment::get().getMechanicsManager()->getDerivedDisposition(mActor);
|
||||||
|
|
||||||
return actorDisposition >= info.mData.mDisposition;
|
return actorDisposition >= info.mData.mDisposition;
|
||||||
|
|
Loading…
Reference in a new issue