mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 14:49:40 +00:00
Fix dialogue response coloring for creatures
This commit is contained in:
parent
4be0c6b708
commit
6a2b87e14a
1 changed files with 8 additions and 1 deletions
|
@ -389,10 +389,17 @@ std::string DialogueWindow::parseText(const std::string& text)
|
||||||
|
|
||||||
std::vector<std::string> topics;
|
std::vector<std::string> topics;
|
||||||
|
|
||||||
|
bool hasSeparator = false;
|
||||||
|
for (unsigned int i=0; i<mTopicsList->getItemCount(); ++i)
|
||||||
|
{
|
||||||
|
if (mTopicsList->getItemNameAt(i) == "")
|
||||||
|
hasSeparator = true;
|
||||||
|
}
|
||||||
|
|
||||||
for(unsigned int i = 0;i<mTopicsList->getItemCount();i++)
|
for(unsigned int i = 0;i<mTopicsList->getItemCount();i++)
|
||||||
{
|
{
|
||||||
std::string keyWord = mTopicsList->getItemNameAt(i);
|
std::string keyWord = mTopicsList->getItemNameAt(i);
|
||||||
if (separatorReached)
|
if (separatorReached || !hasSeparator)
|
||||||
topics.push_back(keyWord);
|
topics.push_back(keyWord);
|
||||||
else if (keyWord == "")
|
else if (keyWord == "")
|
||||||
separatorReached = true;
|
separatorReached = true;
|
||||||
|
|
Loading…
Reference in a new issue