record and replay begin talk mode
This commit is contained in:
@@ -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;
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user