mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Merge pull request #1605
This commit is contained in:
commit
5bb7d76913
1 changed files with 7 additions and 0 deletions
|
@ -566,9 +566,16 @@ namespace MWMechanics
|
||||||
{
|
{
|
||||||
std::string itFaction = playerFactionIt->first;
|
std::string itFaction = playerFactionIt->first;
|
||||||
|
|
||||||
|
// Ignore the faction, if a player was expelled from it.
|
||||||
|
if (playerStats.getExpelled(itFaction))
|
||||||
|
continue;
|
||||||
|
|
||||||
int itReaction = MWBase::Environment::get().getDialogueManager()->getFactionReaction(npcFaction, itFaction);
|
int itReaction = MWBase::Environment::get().getDialogueManager()->getFactionReaction(npcFaction, itFaction);
|
||||||
if (playerFactionIt == playerStats.getFactionRanks().begin() || itReaction < reaction)
|
if (playerFactionIt == playerStats.getFactionRanks().begin() || itReaction < reaction)
|
||||||
|
{
|
||||||
reaction = static_cast<float>(itReaction);
|
reaction = static_cast<float>(itReaction);
|
||||||
|
rank = playerFactionIt->second;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue