only record movement in recording mode

This commit is contained in:
2024-07-03 16:47:43 -06:00
committed by Celtic Minstrel
parent 1640ba9a79
commit 53d4bc2898

View File

@@ -502,10 +502,12 @@ static void handle_look(location destination, bool& need_redraw, bool& need_repr
} }
static void handle_move(location destination, bool& did_something, bool& need_redraw, bool& need_reprint) { static void handle_move(location destination, bool& did_something, bool& need_redraw, bool& need_reprint) {
// record the action if(recording) {
std::stringstream out; // record the action
out << destination; std::stringstream out;
record_action("move", out.str()); out << destination;
record_action("move", out.str());
}
bool town_move_done = false; bool town_move_done = false;
if(overall_mode == MODE_COMBAT) { if(overall_mode == MODE_COMBAT) {