Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #35785 from davidpwbrown/autowalk_underground
Let autotravel happen on other z-levels
  • Loading branch information
ZhilkinSerg committed Nov 30, 2019
2 parents 9146b53 + c86904f commit f23da5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/overmapbuffer.cpp
Expand Up @@ -719,7 +719,8 @@ std::vector<tripoint> overmapbuffer::get_npc_path( const tripoint &src, const tr
pf::path route = pf::find_path( start, finish, 2 * OX,
2 * OY, estimate );
for( auto node : route.nodes ) {
tripoint convert_result = base + tripoint( node.pos, base.z );
tripoint convert_result = base + tripoint( node.pos, 0 );
convert_result.z = base.z;
path.push_back( convert_result );
}
return path;
Expand Down

0 comments on commit f23da5b

Please sign in to comment.