From d3d9b1bbfed0373050e7b5e18353954b272eafaf Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Tue, 24 Sep 2024 19:17:12 -0500 Subject: [PATCH] after advance_time with wrong args, print last action type --- src/game/boe.actions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp index 67036eb0..eb1e5d3a 100644 --- a/src/game/boe.actions.cpp +++ b/src/game/boe.actions.cpp @@ -1633,6 +1633,7 @@ void advance_time(bool did_something, bool need_redraw, bool need_reprint) { } if(replaying && record_advance_time){ if(next_action_type() == "advance_time"){ + std::string _last_action_type = last_action_type; Element& element = pop_next_action(); std::map info = info_from_action(element); std::ostringstream sstr; @@ -1650,6 +1651,7 @@ void advance_time(bool did_something, bool need_redraw, bool need_reprint) { wrong_args = true; sstr << "need_reprint: expected " << !need_reprint << ", was " << need_reprint << ". "; } + sstr << "After " << _last_action_type; if(wrong_args){ throw std::string { "Replay system internal error! advance_time() was called with the wrong args. " } + sstr.str(); }