Disable path find debugging
This commit is contained in:
parent
c7ff744dcd
commit
3f882d9e6c
|
@ -210,10 +210,13 @@ bool LocalPlayer::autoWalk(const Position& destination)
|
||||||
m_autoWalkDestination = destination;
|
m_autoWalkDestination = destination;
|
||||||
m_lastAutoWalkPosition = m_position.translatedToDirections(limitedPath).back();
|
m_lastAutoWalkPosition = m_position.translatedToDirections(limitedPath).back();
|
||||||
|
|
||||||
|
/*
|
||||||
|
// debug calculated path using minimap
|
||||||
for(auto pos : m_position.translatedToDirections(limitedPath)) {
|
for(auto pos : m_position.translatedToDirections(limitedPath)) {
|
||||||
g_map.getOrCreateTile(pos)->overwriteMinimapColor(215);
|
g_map.getOrCreateTile(pos)->overwriteMinimapColor(215);
|
||||||
g_map.notificateTileUpdate(pos);
|
g_map.notificateTileUpdate(pos);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
g_game.autoWalk(limitedPath);
|
g_game.autoWalk(limitedPath);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -47,7 +47,8 @@ bool ResourceManager::discoverWorkDir(const std::string& existentFile)
|
||||||
// search for modules directory
|
// search for modules directory
|
||||||
std::string possiblePaths[] = { g_resources.getCurrentDir(),
|
std::string possiblePaths[] = { g_resources.getCurrentDir(),
|
||||||
g_resources.getBaseDir(),
|
g_resources.getBaseDir(),
|
||||||
g_resources.getBaseDir() + "../" };
|
g_resources.getBaseDir() + "../",
|
||||||
|
g_resources.getBaseDir() + "../share/" + g_app.getCompactName() };
|
||||||
bool found = false;
|
bool found = false;
|
||||||
for(const std::string& dir : possiblePaths) {
|
for(const std::string& dir : possiblePaths) {
|
||||||
if(!PHYSFS_addToSearchPath(dir.c_str(), 0))
|
if(!PHYSFS_addToSearchPath(dir.c_str(), 0))
|
||||||
|
|
Loading…
Reference in New Issue