Skip to content

Commit

Permalink
The downside of manual astyling is that you can miss some stuff to as…
Browse files Browse the repository at this point in the history
…tyle
  • Loading branch information
SariusSkelrets committed Nov 28, 2024
1 parent ff545ca commit caea0b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ std::set<point_abs_ms> 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<point_abs_ms> 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<point_abs_ms> 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 ) {
Expand Down Expand Up @@ -1023,7 +1023,7 @@ std::optional<std::string> 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;
}
Expand Down

0 comments on commit caea0b7

Please sign in to comment.