From c6c6d00badbbf089d02c92a75ddb6b7c9edc2dcb Mon Sep 17 00:00:00 2001 From: Akkadius Date: Mon, 10 Jul 2017 10:42:07 -0500 Subject: [PATCH] #path process file_name.path will actually push to the maps/ directory by default now --- zone/pathing.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zone/pathing.cpp b/zone/pathing.cpp index 417ee3af2..25d996eac 100644 --- a/zone/pathing.cpp +++ b/zone/pathing.cpp @@ -1454,7 +1454,10 @@ void PathManager::NodeInfo(Client *c) void PathManager::DumpPath(std::string filename) { std::ofstream o_file; - o_file.open(filename.c_str(), std::ios_base::binary | std::ios_base::trunc | std::ios_base::out); + + std::string file_to_write = StringFormat("%s%s", Config->MapDir.c_str(), filename.c_str()); + + o_file.open(file_to_write.c_str(), std::ios_base::binary | std::ios_base::trunc | std::ios_base::out); o_file.write("EQEMUPATH", 9); o_file.write((const char*)&Head, sizeof(Head)); o_file.write((const char*)PathNodes, (sizeof(PathNode)*Head.PathNodeCount));