From c345a03d75b214fbcd3b58ce92dad933200c3c2f Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 24 Aug 2024 14:17:30 -0500 Subject: [PATCH] record and replay checking journal --- src/game/boe.infodlg.cpp | 4 ++++ src/game/boe.main.cpp | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/game/boe.infodlg.cpp b/src/game/boe.infodlg.cpp index d086f7bf..d0df77f8 100644 --- a/src/game/boe.infodlg.cpp +++ b/src/game/boe.infodlg.cpp @@ -29,6 +29,7 @@ #include "view_dialogs.hpp" #include "tools/cursors.hpp" #include "utility.hpp" +#include "replay.hpp" short mage_spell_pos = 0,priest_spell_pos = 0,skill_pos = 0; @@ -604,6 +605,9 @@ static void fill_journal(cDialog& me) { } void journal() { + if(recording){ + record_action("journal", ""); + } if(univ.party.journal.empty()) { ASB("Nothing in your events journal."); print_buf(); diff --git a/src/game/boe.main.cpp b/src/game/boe.main.cpp index 64eb90a5..e40db4d0 100644 --- a/src/game/boe.main.cpp +++ b/src/game/boe.main.cpp @@ -348,8 +348,10 @@ static void replay_next_action() { handle_new_pc_graphic(); }else if(t == "handle_rename_pc"){ handle_rename_pc(); - }else if (t == "handle_new_pc"){ + }else if(t == "handle_new_pc"){ handle_new_pc(); + }else if(t == "journal"){ + journal(); } // TODO some of these actions shouldn't call advance_time(). They should return @@ -695,7 +697,6 @@ void handle_menu_choice(eMenu item_hit) { break; case eMenu::OPTIONS_JOURNAL: - // TODO record and replay journal(); break; case eMenu::OPTIONS_TALK_NOTES: