diff options
author | David Jones <david@gogledd.cymru> | 2015-08-25 21:23:05 +0100 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2015-08-25 18:33:52 -0400 |
commit | 34b7a147dcf9831f3b4d81599c473ba01ff5da00 (patch) | |
tree | e7a95bf333d782ebde897b25070c5d997174e2f5 /src/pathfinder.cpp | |
parent | 2480f2d06fe50295184a60d6659378f9a5d57065 (diff) | |
download | minetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.tar.gz minetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.tar.bz2 minetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.zip |
Change i++ to ++i
Diffstat (limited to 'src/pathfinder.cpp')
-rw-r--r-- | src/pathfinder.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pathfinder.cpp b/src/pathfinder.cpp index 8eb52bfd1..673d5077e 100644 --- a/src/pathfinder.cpp +++ b/src/pathfinder.cpp @@ -313,7 +313,7 @@ std::vector<v3s16> pathfinder::get_Path(ServerEnvironment* env, //finalize path std::vector<v3s16> full_path; for (std::vector<v3s16>::iterator i = path.begin(); - i != path.end(); i++) { + i != path.end(); ++i) { full_path.push_back(getIndexElement(*i).pos); } @@ -724,7 +724,7 @@ v3s16 pathfinder::get_dir_heuristic(std::vector<v3s16>& directions,path_gridnode for (std::vector<v3s16>::iterator iter = directions.begin(); iter != directions.end(); - iter ++) { + ++iter) { v3s16 pos1 = v3s16(srcpos.X + iter->X,0,srcpos.Z+iter->Z); @@ -749,7 +749,7 @@ v3s16 pathfinder::get_dir_heuristic(std::vector<v3s16>& directions,path_gridnode if (retdir != v3s16(0,0,0)) { for (std::vector<v3s16>::iterator iter = directions.begin(); iter != directions.end(); - iter ++) { + ++iter) { if(*iter == retdir) { DEBUG_OUT("Pathfinder: removing return direction" << std::endl); directions.erase(iter); @@ -1064,7 +1064,7 @@ void pathfinder::print_path(std::vector<v3s16> path) { unsigned int current = 0; for (std::vector<v3s16>::iterator i = path.begin(); - i != path.end(); i++) { + i != path.end(); ++i) { std::cout << std::setw(3) << current << ":" << PPOS((*i)) << std::endl; current++; } |