From 626ea518e5d4bb0baeba41d5c1d603c21c6fc66d Mon Sep 17 00:00:00 2001 From: eltank <8000047+eltank@users.noreply.github.com> Date: Wed, 11 Aug 2021 15:17:39 -0700 Subject: [PATCH] Enable vehicle pathing through subway tunnels --- src/overmapbuffer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/overmapbuffer.cpp b/src/overmapbuffer.cpp index 2f01e840c1e2a..e0b78e9245a14 100644 --- a/src/overmapbuffer.cpp +++ b/src/overmapbuffer.cpp @@ -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;