From ff69665815b96d85d3886479a63c61cb33d1b59a Mon Sep 17 00:00:00 2001 From: myk002 Date: Wed, 27 Jan 2021 08:25:21 -0800 Subject: [PATCH] keep stockflow from stealing input during rename --- docs/changelog.txt | 1 + plugins/stockflow.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/docs/changelog.txt b/docs/changelog.txt index c947797f7..a0ecacb18 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -37,6 +37,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: - `embark-assistant`: fixed order of factors when calculating min temperature - `embark-assistant`: improved performance of surveying - `quickfort`: creating zones no longer causes eventual crashes +- `stockflow`: fixed 'j' character not being allowed in stockpile names ## Misc Improvements - `buildingplan`: set global settings from the ``DFHack#`` prompt: e.g. ``buildingplan set boulders false`` diff --git a/plugins/stockflow.cpp b/plugins/stockflow.cpp index 06635d8c0..22e4abdf9 100644 --- a/plugins/stockflow.cpp +++ b/plugins/stockflow.cpp @@ -266,6 +266,9 @@ struct stockflow_hook : public df::viewscreen_dwarfmodest { typedef df::viewscreen_dwarfmodest interpose_base; bool handleInput(set *input) { + if (Gui::inRenameBuilding()) + return false; + building_stockpilest *sp = get_selected_stockpile(); if (!sp) return false;