|
|
|
@ -77,11 +77,15 @@ namespace MWDialogue
|
|
|
|
|
|
|
|
|
|
void Journal::addEntry (const std::string& id, int index, const MWWorld::Ptr& actor)
|
|
|
|
|
{
|
|
|
|
|
// bail out of we already have heard this...
|
|
|
|
|
// bail out if we already have heard this...
|
|
|
|
|
std::string infoId = JournalEntry::idFromIndex (id, index);
|
|
|
|
|
for (TEntryIter i = mJournal.begin (); i != mJournal.end (); ++i)
|
|
|
|
|
if (i->mTopic == id && i->mInfoId == infoId)
|
|
|
|
|
{
|
|
|
|
|
setJournalIndex(id, index);
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->messageBox ("#{sJournalEntry}");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StampedJournalEntry entry = StampedJournalEntry::makeFromQuest (id, index, actor);
|
|
|
|
|
|
|
|
|
|