X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpathfinder.cpp;h=d39bdab3add0a1ba243d549a2670f63c7b26033e;hb=9afeb97fc693a769f2d9dad4aad6ddbdef285a71;hp=3e8a73ac25683341914d881d4a4e4c7b51bf2b96;hpb=5d0f19fd7db83666bef84c2fb6a641ff76176468;p=dragonfireclient.git diff --git a/src/pathfinder.cpp b/src/pathfinder.cpp index 3e8a73ac2..d39bdab3a 100644 --- a/src/pathfinder.cpp +++ b/src/pathfinder.cpp @@ -51,9 +51,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #define ERROR_TARGET std::cout #else #define DEBUG_OUT(a) while(0) -#define INFO_TARGET infostream -#define VERBOSE_TARGET verbosestream -#define ERROR_TARGET errorstream +#define INFO_TARGET infostream << "pathfinder: " +#define VERBOSE_TARGET verbosestream << "pathfinder: " +#define ERROR_TARGET errorstream << "pathfinder: " #endif /******************************************************************************/ @@ -263,13 +263,13 @@ std::vector pathfinder::get_Path(ServerEnvironment* env, path_gridnode& endpos = getIndexElement(EndIndex); if (!startpos.valid) { - ERROR_TARGET << "invalid startpos" << + VERBOSE_TARGET << "invalid startpos" << "Index: " << PPOS(StartIndex) << "Realpos: " << PPOS(getRealPos(StartIndex)) << std::endl; return retval; } if (!endpos.valid) { - ERROR_TARGET << "invalid stoppos" << + VERBOSE_TARGET << "invalid stoppos" << "Index: " << PPOS(EndIndex) << "Realpos: " << PPOS(getRealPos(EndIndex)) << std::endl; return retval;