Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename vehicle::__part_removal_actual() #58293

Merged
merged 1 commit into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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