Skip to content

Commit

Permalink
Enable vehicle pathing through subway tunnels
Browse files Browse the repository at this point in the history
  • Loading branch information
eltank committed Aug 11, 2021
1 parent 10c04b3 commit 626ea51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/overmapbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,8 @@ static int get_terrain_cost( const tripoint_abs_omt &omt_pos, const overmap_path
} else if( is_ot_match( "field", oter, ot_match_type::type ) ) {
return params.field_cost;
} else if( is_ot_match( "rural_road", oter, ot_match_type::prefix ) ||
is_ot_match( "dirt_road", oter, ot_match_type::prefix ) ) {
is_ot_match( "dirt_road", oter, ot_match_type::prefix ) ||
is_ot_match( "subway", oter, ot_match_type::prefix ) ) {
return params.dirt_road_cost;
} else if( is_ot_match( "forest_trail", oter, ot_match_type::type ) ) {
return params.trail_cost;
Expand Down

0 comments on commit 626ea51

Please sign in to comment.