Minor pathfinder error message changes

Added missing spaces such that the confusing 'startposIndex' and 'stopposIndex'
do not appear. Also prefixed those error messages with 'pathfinder:' so
the source of the error is more obvious.
This commit is contained in:
Ciaran Gultnieks 2014-01-21 10:11:45 +00:00
parent 4585e855a7
commit 9bc206a2f0
1 changed files with 2 additions and 2 deletions

View File

@ -263,13 +263,13 @@ std::vector<v3s16> pathfinder::get_Path(ServerEnvironment* env,
path_gridnode& endpos = getIndexElement(EndIndex);
if (!startpos.valid) {
ERROR_TARGET << "invalid startpos" <<
ERROR_TARGET << "pathfinder:invalid startpos " <<
"Index: " << PPOS(StartIndex) <<
"Realpos: " << PPOS(getRealPos(StartIndex)) << std::endl;
return retval;
}
if (!endpos.valid) {
ERROR_TARGET << "invalid stoppos" <<
ERROR_TARGET << "pathfinder:invalid stoppos " <<
"Index: " << PPOS(EndIndex) <<
"Realpos: " << PPOS(getRealPos(EndIndex)) << std::endl;
return retval;