From a2f943e7e5eba65f574ef2e0661f1f2c45979eda Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Sat, 24 Oct 2020 09:19:15 -0700 Subject: [PATCH] don't shift UI down for track constructions automat doesn't have UI there to avoid --- plugins/buildingplan.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/buildingplan.cpp b/plugins/buildingplan.cpp index 910e5ebe4..501594c4a 100644 --- a/plugins/buildingplan.cpp +++ b/plugins/buildingplan.cpp @@ -1,3 +1,4 @@ +#include "df/construction_type.h" #include "df/entity_position.h" #include "df/interface_key.h" #include "df/ui_build_selector.h" @@ -641,7 +642,9 @@ struct buildingplan_place_hook : public df::viewscreen_dwarfmodest int y = 23; - if (ui_build_selector->building_type == df::building_type::Construction) + if (ui_build_selector->building_type == df::building_type::Construction + && ui_build_selector->building_subtype < + df::construction_type::TrackN) { // try not to conflict with the automaterial plugin UI y = 34;