Merge remote-tracking branch 'myk002/myk_buildingplan_enable_check' into develop

develop
lethosor 2021-05-10 00:11:36 -04:00
commit 57f26b6f21
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
2 changed files with 2 additions and 1 deletions

@ -35,6 +35,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
## Fixes ## Fixes
- `buildingplan`: fixed an issue where planned constructions designated with DF's sizing keys (``umkh``) would sometimes be larger than requested - `buildingplan`: fixed an issue where planned constructions designated with DF's sizing keys (``umkh``) would sometimes be larger than requested
- `buildingplan`: make ``isPlanModeEnabled()`` always return true if "enable all" is set. this fixes the `automaterial` plugin interface when building constructions and buildingplan's "enable all" setting is set.
- `command-prompt`: fixed issues where overlays created by running certain commands (e.g. `gui/liquids`, `gui/teleport`) would not update the parent screen correctly - `command-prompt`: fixed issues where overlays created by running certain commands (e.g. `gui/liquids`, `gui/teleport`) would not update the parent screen correctly
- ``quickfortress.csv`` blueprint: fixed refuse stockpile config and prevented stockpiles from covering stairways - ``quickfortress.csv`` blueprint: fixed refuse stockpile config and prevented stockpiles from covering stairways

@ -1087,7 +1087,7 @@ DFhackCExport command_result plugin_shutdown(color_ostream &)
static bool isPlanModeEnabled(df::building_type type, static bool isPlanModeEnabled(df::building_type type,
int16_t subtype, int16_t subtype,
int32_t custom) { int32_t custom) {
return planmode_enabled[toBuildingTypeKey(type, subtype, custom)]; return is_planmode_enabled(toBuildingTypeKey(type, subtype, custom));
} }
static bool isPlannableBuilding(df::building_type type, static bool isPlannableBuilding(df::building_type type,