Merge pull request #1328 from akortunov/journalfix

Do not show empty journal entries (fixes #3891)
pull/231/head
scrawl 8 years ago committed by GitHub
commit ea5fe4b686

@ -85,14 +85,16 @@ namespace MWDialogue
StampedJournalEntry entry = StampedJournalEntry::makeFromQuest (id, index, actor); StampedJournalEntry entry = StampedJournalEntry::makeFromQuest (id, index, actor);
mJournal.push_back (entry);
Quest& quest = getQuest (id); Quest& quest = getQuest (id);
quest.addEntry (entry); // we are doing slicing on purpose here quest.addEntry (entry); // we are doing slicing on purpose here
// there is no need to show empty entries in journal
if (!entry.getText().empty())
{
mJournal.push_back (entry);
MWBase::Environment::get().getWindowManager()->messageBox ("#{sJournalEntry}"); MWBase::Environment::get().getWindowManager()->messageBox ("#{sJournalEntry}");
} }
}
void Journal::setJournalIndex (const std::string& id, int index) void Journal::setJournalIndex (const std::string& id, int index)
{ {

Loading…
Cancel
Save