mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
Fix dialogue topics displayed in lower case
This commit is contained in:
parent
f3be39660b
commit
768da57da2
@ -325,8 +325,7 @@ namespace MWDialogue
|
||||
{
|
||||
if (filter.responseAvailable (*iter))
|
||||
{
|
||||
std::string lower = Misc::StringUtils::lowerCase(iter->mId);
|
||||
mActorKnownTopics.insert (lower);
|
||||
mActorKnownTopics.insert (iter->mId);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -342,7 +341,7 @@ namespace MWDialogue
|
||||
for (const std::string& topic : mActorKnownTopics)
|
||||
{
|
||||
//does the player know the topic?
|
||||
if (mKnownTopics.count(Misc::StringUtils::lowerCase(topic)))
|
||||
if (mKnownTopics.count(topic))
|
||||
keywordList.push_back(topic);
|
||||
}
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
#include <components/compiler/streamerrorhandler.hpp>
|
||||
#include <components/translation/translation.hpp>
|
||||
#include <components/misc/stringops.hpp>
|
||||
|
||||
#include "../mwworld/ptr.hpp"
|
||||
|
||||
@ -22,13 +23,13 @@ namespace MWDialogue
|
||||
{
|
||||
class DialogueManager : public MWBase::DialogueManager
|
||||
{
|
||||
std::set<std::string> mKnownTopics;// Those are the topics the player knows.
|
||||
std::set<std::string, Misc::StringUtils::CiComp> mKnownTopics;// Those are the topics the player knows.
|
||||
|
||||
// Modified faction reactions. <Faction1, <Faction2, Difference> >
|
||||
typedef std::map<std::string, std::map<std::string, int> > ModFactionReactionMap;
|
||||
ModFactionReactionMap mChangedFactionReaction;
|
||||
|
||||
std::set<std::string> mActorKnownTopics;
|
||||
std::set<std::string, Misc::StringUtils::CiComp> mActorKnownTopics;
|
||||
|
||||
Translation::Storage& mTranslationDataStorage;
|
||||
MWScript::CompilerContext mCompilerContext;
|
||||
|
Loading…
Reference in New Issue
Block a user