| 1051 | } |
| 1052 | |
| 1053 | static void createDesign(df::building *bld, bool rough) |
| 1054 | { |
| 1055 | auto job = bld->jobs[0]; |
| 1056 | |
| 1057 | job->mat_type = bld->mat_type; |
| 1058 | job->mat_index = bld->mat_index; |
| 1059 | |
| 1060 | if (bld->needsDesign()) |
| 1061 | { |
| 1062 | auto act = (df::building_actual*)bld; |
| 1063 | act->design = new df::building_design(); |
| 1064 | |
| 1065 | act->design->flags.bits.rough = rough; |
| 1066 | } |
| 1067 | } |
| 1068 | |
| 1069 | static int getMaxStockpileId() |
| 1070 | { |
no outgoing calls
no test coverage detected