Skip to content
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
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Template for new versions:
## New Features

## Fixes
- `cleanconst`: do not attempt to clean Reinforced constructions

## Misc Improvements

Expand Down
4 changes: 4 additions & 0 deletions plugins/cleanconst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ command_result df_cleanconst(color_ostream &out, vector <string> & parameters)
if (cons->flags.bits.no_build_item)
continue;

// Skip reinforced constructions as well
if (cons->flags.bits.reinforced)
continue;

// only destroy the item if the construction claims to be made of the exact same thing
if (item->getType() != cons->item_type ||
item->getSubtype() != cons->item_subtype ||
Expand Down