Fix automaterial/box-select cursor color

Only use a dark green cursor when actually building a construction
develop
lethosor 2014-11-08 19:05:41 -05:00
parent ba56f369e5
commit f069676fc2
1 changed files with 4 additions and 0 deletions

@ -660,6 +660,10 @@ struct jobutils_hook : public df::viewscreen_dwarfmodest
if (!box_select_enabled)
return;
if (ui->main.mode != df::ui_sidebar_mode::Build ||
ui_build_selector->building_type != df::building_type::Construction)
return;
df::coord vport = Gui::getViewportPos();
//Even if selection drawing is disabled, paint a green cursor as we can place box selection anywhere