From bc89dad15961f49410eb389603dcc7f4fede11d2 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Thu, 1 Aug 2024 11:07:01 -0500 Subject: [PATCH] record and replay quitting the app --- src/game/boe.main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/boe.main.cpp b/src/game/boe.main.cpp index c89258c1..c9954b46 100644 --- a/src/game/boe.main.cpp +++ b/src/game/boe.main.cpp @@ -324,6 +324,8 @@ void replay_next_action() { }else if(t == "handle_give_item"){ short item_hit = short_from_action(next_action); handle_give_item(item_hit, did_something, need_redraw); + }else if(t == "close_window"){ + handle_quit_event(); } advance_time(did_something, need_redraw, need_reprint); @@ -459,6 +461,9 @@ void handle_events() { } void handle_quit_event() { + if(recording){ + record_action("close_window", ""); + } if(overall_mode == MODE_STARTUP) { if(party_in_memory) { std::string choice = cChoiceDlog("quit-confirm-save", {"save","quit","cancel"}).show();