From 54702085d550a8a5183523e61b8c939bd29cde1f Mon Sep 17 00:00:00 2001 From: myk002 Date: Wed, 11 Nov 2020 17:12:56 -0800 Subject: [PATCH] don't eat keys while building is being renamed allows buildingplan to prevent unsuspension of planned buildings without also eating the 's' key when the user is trying to use it to give the building a custom name. --- plugins/buildingplan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/buildingplan.cpp b/plugins/buildingplan.cpp index c23d15574..fadd723a7 100644 --- a/plugins/buildingplan.cpp +++ b/plugins/buildingplan.cpp @@ -431,7 +431,7 @@ struct buildingplan_query_hook : public df::viewscreen_dwarfmodest bool handleInput(set *input) { - if (!isInPlannedBuildingQueryMode()) + if (!isInPlannedBuildingQueryMode() || Gui::inRenameBuilding()) return false; initStatics();