diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp index 88acaae7..7fa0cc75 100644 --- a/src/game/boe.actions.cpp +++ b/src/game/boe.actions.cpp @@ -342,7 +342,10 @@ static void handle_stand_ready(bool& need_redraw, bool& need_reprint) { put_pc_screen(); } -static void handle_parry(bool& did_something, bool& need_redraw, bool& need_reprint) { +void handle_parry(bool& did_something, bool& need_redraw, bool& need_reprint) { + if(recording){ + record_action("handle_parry", ""); + } add_string_to_buf("Parry."); char_parry(); did_something = true; diff --git a/src/game/boe.actions.hpp b/src/game/boe.actions.hpp index ae7e62d9..ae6a7a1f 100644 --- a/src/game/boe.actions.hpp +++ b/src/game/boe.actions.hpp @@ -56,6 +56,7 @@ void handle_drop_item(short item_hit, bool& need_redraw); void handle_drop_item(location destination, bool& need_redraw); void handle_give_item(short item_hit, bool& did_something, bool& need_redraw); void handle_toggle_active(bool& need_reprint); +void handle_parry(bool& did_something, bool& need_redraw, bool& need_reprint); void show_dialog_action(std::string xml_file); void handle_new_pc_graphic(); void handle_rename_pc(); diff --git a/src/game/boe.main.cpp b/src/game/boe.main.cpp index 8b906ebc..0b8ae426 100644 --- a/src/game/boe.main.cpp +++ b/src/game/boe.main.cpp @@ -530,6 +530,8 @@ static void replay_next_action() { close_map(true); }else if(t == "handle_toggle_active"){ handle_toggle_active(need_reprint); + }else if(t == "handle_parry"){ + handle_parry(did_something, need_redraw, need_reprint); }else{ std::ostringstream sstr; sstr << "Couldn't replay action: " << next_action;