Skip to content

Commit

Permalink
Rename vehicle::__part_removal_actual() (CleverRaven#58293)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettDong authored and bombasticSlacks committed Jun 10, 2022
1 parent b83cf93 commit 0f5fe12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1880,7 +1880,7 @@ bool vehicle::remove_part( const int p, RemovePartHandler &handler )
return shift_if_needed( handler.get_map_ref() );
}

bool vehicle::__part_removal_actual()
bool vehicle::do_remove_part_actual()
{
bool changed = false;
map &here = get_map();
Expand Down Expand Up @@ -1914,7 +1914,7 @@ void vehicle::part_removal_cleanup()
{
map &here = get_map();
remove_fake_parts( false );
const bool changed = __part_removal_actual();
const bool changed = do_remove_part_actual();
removed_part_count = 0;
if( changed || parts.empty() ) {
refresh();
Expand Down Expand Up @@ -6006,7 +6006,7 @@ void vehicle::remove_fake_parts( const bool cleanup )
edges.clear();
fake_parts.clear();
if( cleanup ) {
__part_removal_actual();
do_remove_part_actual();
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/vehicle.h
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ class vehicle
void part_removal_cleanup();
// inner look for part_removal_cleanup. returns true if a part is removed
// also called by remove_fake_parts
bool __part_removal_actual();
bool do_remove_part_actual();

// remove the carried flag from a vehicle after it has been removed from a rack
void remove_carried_flag();
Expand Down

0 comments on commit 0f5fe12

Please sign in to comment.