record movement actions

This commit is contained in:
2024-07-03 16:17:50 -06:00
committed by Celtic Minstrel
parent 54ac26b4da
commit 37ca8188c1

View File

@@ -3,6 +3,8 @@
#include <queue>
#include "boe.global.hpp"
#include "tools/replay.hpp"
#include <sstream>
#include "universe/universe.hpp"
#include "boe.actions.hpp"
@@ -500,6 +502,11 @@ 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) {
// record the action
std::stringstream out;
out << destination;
record_action("move", out.str());
bool town_move_done = false;
if(overall_mode == MODE_COMBAT) {
if(pc_combat_move(destination)) {