From 0451fd6b589796c82eae09be078a2fdd444102a6 Mon Sep 17 00:00:00 2001 From: Allan Ference Date: Thu, 15 Aug 2013 11:20:22 +0200 Subject: [PATCH] OTBM saver: don't escape version check for waypoints --- src/client/mapio.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/client/mapio.cpp b/src/client/mapio.cpp index 17c49d08..7d66459e 100644 --- a/src/client/mapio.cpp +++ b/src/client/mapio.cpp @@ -293,10 +293,8 @@ void Map::saveOtbm(const std::string& fileName) root->addString(spawnFile); // house file. - //if(version > 1) { - root->addU8(OTBM_ATTR_HOUSE_FILE); - root->addString(houseFile); - //} + root->addU8(OTBM_ATTR_HOUSE_FILE); + root->addString(houseFile); int px = -1, py = -1, pz =-1; bool firstNode = true; @@ -374,7 +372,7 @@ void Map::saveOtbm(const std::string& fileName) } root->endNode(); - //if(version > 1) { + if(version > 1) { root->startNode(OTBM_WAYPOINTS); for(const auto& it : m_waypoints) { root->startNode(OTBM_WAYPOINT); @@ -385,7 +383,7 @@ void Map::saveOtbm(const std::string& fileName) root->endNode(); } root->endNode(); - //} + } } root->endNode(); // OTBM_MAP_DATA }