|
|
@ -997,18 +997,23 @@ struct jobutils_hook : public df::viewscreen_dwarfmodest
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// if using buildingplan, we don't need an anchor
|
|
|
|
// if using buildingplan, we don't need an anchor
|
|
|
|
if (!use_buildingplan && in_future_placement_mode)
|
|
|
|
if (!use_buildingplan)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (in_future_placement_mode)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ok_to_continue = find_anchor_in_spiral(valid_building_sites[0].pos);
|
|
|
|
ok_to_continue =
|
|
|
|
|
|
|
|
find_anchor_in_spiral(valid_building_sites[0].pos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (ok_to_continue)
|
|
|
|
else if (ok_to_continue)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// First valid site is guaranteed to be anchored, either on a tile or against a valid orthogonal tile
|
|
|
|
// First valid site is guaranteed to be anchored, either on
|
|
|
|
|
|
|
|
// a tile or against a valid orthogonal tile
|
|
|
|
// Use it as an anchor point to generate materials list
|
|
|
|
// Use it as an anchor point to generate materials list
|
|
|
|
anchor = valid_building_sites.front();
|
|
|
|
anchor = valid_building_sites.front();
|
|
|
|
valid_building_sites.pop_front();
|
|
|
|
valid_building_sites.pop_front();
|
|
|
|
valid_building_sites.push_back(anchor);
|
|
|
|
valid_building_sites.push_back(anchor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!ok_to_continue)
|
|
|
|
if (!ok_to_continue)
|
|
|
|
{
|
|
|
|
{
|
|
|
|