mirror of https://github.com/minetest/minetest.git
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:
parent
4585e855a7
commit
9bc206a2f0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue