don't shift UI down for track constructions

automat doesn't have UI there to avoid
develop
Myk Taylor 2020-10-24 09:19:15 -07:00
parent 0f517f38f8
commit a2f943e7e5
1 changed files with 4 additions and 1 deletions

@ -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;