record and replay checking journal

This commit is contained in:
2024-08-24 14:17:30 -05:00
committed by Celtic Minstrel
parent ec8c412018
commit c345a03d75
2 changed files with 7 additions and 2 deletions

View File

@@ -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();

View File

@@ -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: