diff --git a/src/vehicle.cpp b/src/vehicle.cpp index c534c279231ab..00016261af4d2 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -715,7 +715,7 @@ std::set vehicle::immediate_path( const units::angle &rotate ) map &here = get_map(); point_bub_ms top_left_actual = pos_bub().xy() + coord_translate( front_left ); point_bub_ms top_right_actual = pos_bub().xy() + coord_translate( front_right ); - std::vector front_row = line_to( here.getglobal( tripoint_bub_ms{ top_left_actual.x(), top_left_actual.y(), here.get_abs_sub().z()} ).xy(), + std::vector front_row = line_to( here.getglobal( tripoint_bub_ms{top_left_actual.x(), top_left_actual.y(), here.get_abs_sub().z()} ).xy(), here.getglobal( tripoint_bub_ms{top_right_actual.x(), top_right_actual.y(), here.get_abs_sub().z()} ).xy() ); for( const point_abs_ms &elem : front_row ) { for( int i = 0; i < distance_to_check; ++i ) { @@ -1023,7 +1023,7 @@ std::optional vehicle::has_engine_conflict( const vpart_info &possi return std::nullopt; } -bool vehicle::is_engine_type( const vehicle_part &vp, const itype_id &ft ) const +bool vehicle::is_engine_type( const vehicle_part &vp, const itype_id &ft ) const { return vp.ammo_current().is_null() ? vp.fuel_current() == ft : vp.ammo_current() == ft; }