Skip to content

Commit

Permalink
Fix road building (#1596)
Browse files Browse the repository at this point in the history
Paved roads need architecture before road building
  • Loading branch information
lethosor committed Aug 8, 2020
1 parent b2368b3 commit 73ba692
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/labormanager/joblabormapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ static df::building* get_building_from_job(df::job* j)

static df::unit_labor construction_build_labor(df::building_actual* b)
{
if (b->getType() == df::building_type::RoadPaved)
return df::unit_labor::BUILD_ROAD;
// Find last item in building with use mode appropriate to the building's constructions state
// For screw pumps contained_items[0] = pipe, 1 corkscrew, 2 block
// For wells 0 mechanism, 1 rope, 2 bucket, 3 block
Expand Down Expand Up @@ -332,6 +334,7 @@ class jlfunc_construct_bld : public jlfunc
case df::building_type::Bridge:
case df::building_type::ArcheryTarget:
case df::building_type::WaterWheel:
case df::building_type::RoadPaved:
case df::building_type::Well:
case df::building_type::ScrewPump:
case df::building_type::Wagon:
Expand All @@ -345,8 +348,6 @@ class jlfunc_construct_bld : public jlfunc
return construction_build_labor(b);
}
break;
case df::building_type::RoadPaved:
return df::unit_labor::BUILD_ROAD;
case df::building_type::FarmPlot:
return df::unit_labor::PLANT;
case df::building_type::Chair:
Expand Down

0 comments on commit 73ba692

Please sign in to comment.