From a7c1d757be40b25e48cf89bc0c00d9485e0c6a54 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 23 Aug 2024 21:40:12 -0500 Subject: [PATCH] record and replay PC deletion --- src/game/boe.actions.cpp | 3 +++ src/game/boe.main.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp index 9211b2ce..d7b2b9a9 100644 --- a/src/game/boe.actions.cpp +++ b/src/game/boe.actions.cpp @@ -2628,6 +2628,9 @@ void switch_pc(short which) { } void drop_pc() { + if(recording){ + record_action("drop_pc", ""); + } if(!prime_time()) { ASB("Finish what you're doing first."); print_buf(); diff --git a/src/game/boe.main.cpp b/src/game/boe.main.cpp index 65a5ecb9..6972081e 100644 --- a/src/game/boe.main.cpp +++ b/src/game/boe.main.cpp @@ -336,6 +336,8 @@ static void replay_next_action() { arrow_button_click(button_rect); }else if(t == "show_dialog_action"){ show_dialog_action(next_action.GetText()); + }else if(t == "drop_pc"){ + drop_pc(); } advance_time(did_something, need_redraw, need_reprint);