record and replay begin talk mode

This commit is contained in:
2024-08-27 20:56:22 -05:00
committed by Celtic Minstrel
parent 556e5786bb
commit 17070a5db6
3 changed files with 7 additions and 1 deletions

View File

@@ -332,7 +332,10 @@ void handle_begin_look(bool right_button, bool& need_redraw) {
need_redraw = true;
}
static void handle_begin_talk(bool& need_reprint) {
void handle_begin_talk(bool& need_reprint) {
if(recording){
record_action("handle_begin_talk", "");
}
overall_mode = MODE_TALK_TOWN;
add_string_to_buf("Talk: Select someone.");
need_reprint = true;

View File

@@ -92,5 +92,6 @@ void debug_heal();
void handle_print_pc_hp(int which_pc);
void handle_print_pc_sp(int which_pc);
void handle_trade_places(int which_pc);
void handle_begin_talk(bool& need_reprint);
#endif

View File

@@ -529,6 +529,8 @@ static void replay_next_action() {
give_pc_info(boost::lexical_cast<short>(next_action.GetText()));
}else if(t == "handle_trade_places"){
handle_trade_places(boost::lexical_cast<short>(next_action.GetText()));
}else if(t == "handle_begin_talk"){
handle_begin_talk(need_reprint);
}
// TODO some of these actions shouldn't call advance_time(). They should return