From 3f882d9e6c77166a3dca2dfd2a5ade434c798044 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Wed, 23 Jan 2013 13:05:18 -0200 Subject: [PATCH] Disable path find debugging --- src/client/localplayer.cpp | 3 +++ src/framework/core/resourcemanager.cpp | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/localplayer.cpp b/src/client/localplayer.cpp index 6662737c..3040ebb3 100644 --- a/src/client/localplayer.cpp +++ b/src/client/localplayer.cpp @@ -210,10 +210,13 @@ bool LocalPlayer::autoWalk(const Position& destination) m_autoWalkDestination = destination; m_lastAutoWalkPosition = m_position.translatedToDirections(limitedPath).back(); + /* + // debug calculated path using minimap for(auto pos : m_position.translatedToDirections(limitedPath)) { g_map.getOrCreateTile(pos)->overwriteMinimapColor(215); g_map.notificateTileUpdate(pos); } + */ g_game.autoWalk(limitedPath); return true; diff --git a/src/framework/core/resourcemanager.cpp b/src/framework/core/resourcemanager.cpp index bbb15de0..6ceea88e 100644 --- a/src/framework/core/resourcemanager.cpp +++ b/src/framework/core/resourcemanager.cpp @@ -47,7 +47,8 @@ bool ResourceManager::discoverWorkDir(const std::string& existentFile) // search for modules directory std::string possiblePaths[] = { g_resources.getCurrentDir(), g_resources.getBaseDir(), - g_resources.getBaseDir() + "../" }; + g_resources.getBaseDir() + "../", + g_resources.getBaseDir() + "../share/" + g_app.getCompactName() }; bool found = false; for(const std::string& dir : possiblePaths) { if(!PHYSFS_addToSearchPath(dir.c_str(), 0))