diff options
author | PilzAdam <pilzadam@minetest.net> | 2013-08-16 17:42:12 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-08-16 17:42:12 +0200 |
commit | 75a139e62cccd7c2b053a1ae6ed7f0fed5abdf63 (patch) | |
tree | b5607df15db7a1af6a351d76c2c273444f7dbac7 /src | |
parent | 1e4e64f83195ed1be0aa0c4a237a50de6dd132a9 (diff) | |
download | minetest-75a139e62cccd7c2b053a1ae6ed7f0fed5abdf63.tar.gz minetest-75a139e62cccd7c2b053a1ae6ed7f0fed5abdf63.tar.bz2 minetest-75a139e62cccd7c2b053a1ae6ed7f0fed5abdf63.zip |
Use errorstream instead of std::cout in pathfinder.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/pathfinder.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pathfinder.cpp b/src/pathfinder.cpp index 43e1e287f..a173e33d5 100644 --- a/src/pathfinder.cpp +++ b/src/pathfinder.cpp @@ -207,7 +207,7 @@ std::vector<v3s16> pathfinder::get_Path(ServerEnvironment* env, //check parameters if (env == 0) { - std::cout << "missing environment pointer" << std::endl; + ERROR_TARGET << "missing environment pointer" << std::endl; return retval; } @@ -246,7 +246,7 @@ std::vector<v3s16> pathfinder::get_Path(ServerEnvironment* env, //build data map if (!build_costmap()) { - std::cout << "failed to build costmap" << std::endl; + ERROR_TARGET << "failed to build costmap" << std::endl; return retval; } #ifdef PATHFINDER_DEBUG @@ -263,13 +263,13 @@ std::vector<v3s16> pathfinder::get_Path(ServerEnvironment* env, path_gridnode& endpos = getIndexElement(EndIndex); if (!startpos.valid) { - std::cout << "invalid startpos" << + ERROR_TARGET << "invalid startpos" << "Index: " << PPOS(StartIndex) << "Realpos: " << PPOS(getRealPos(StartIndex)) << std::endl; return retval; } if (!endpos.valid) { - std::cout << "invalid stoppos" << + ERROR_TARGET << "invalid stoppos" << "Index: " << PPOS(EndIndex) << "Realpos: " << PPOS(getRealPos(EndIndex)) << std::endl; return retval; @@ -290,7 +290,7 @@ std::vector<v3s16> pathfinder::get_Path(ServerEnvironment* env, update_cost_retval = update_cost_heuristic(StartIndex,v3s16(0,0,0),0,0); break; default: - std::cout << "missing algorithm"<< std::endl; + ERROR_TARGET << "missing algorithm"<< std::endl; break; } @@ -350,7 +350,7 @@ std::vector<v3s16> pathfinder::get_Path(ServerEnvironment* env, #ifdef PATHFINDER_DEBUG print_pathlen(); #endif - std::cout << "failed to update cost map"<< std::endl; + ERROR_TARGET << "failed to update cost map"<< std::endl; } |