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

[Buildings] clean up deconstruct #4828

Merged
merged 3 commits into from
Aug 2, 2024

Conversation

myk002
Copy link
Member

@myk002 myk002 commented Aug 2, 2024

@myk002 myk002 requested a review from quietust August 2, 2024 04:43
Comment on lines +1367 to +1380
const bool interrupt_link =
btype == df::building_type::Door ||
btype == df::building_type::Floodgate ||
btype == df::building_type::Bridge ||
btype == df::building_type::Support ||
btype == df::building_type::Chain ||
btype == df::building_type::Cage ||
btype == df::building_type::Weapon ||
btype == df::building_type::Hatch ||
btype == df::building_type::GrateWall ||
btype == df::building_type::GrateFloor ||
btype == df::building_type::BarsVertical ||
btype == df::building_type::BarsFloor ||
btype == df::building_type::GearAssembly;
Copy link
Contributor

@Bumber64 Bumber64 Aug 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

df::building_type::Trap with df::trap_type::Lever, df::trap_type::PressurePlate, or df::trap_type::TrackStop. You could probably skip checking the trap type, since you're iterating jobs regardless.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I figured just checking for df::building_type::Trap would be sufficient here. I don't foresee any false positives or false negatives with the simpler check

@myk002 myk002 merged commit a45defc into DFHack:develop Aug 2, 2024
14 checks passed
@myk002 myk002 deleted the myk_deconstruct_cleanup branch August 2, 2024 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Crash occurs when using gui/mass-remove on large sections of furniture
2 participants