Also exclude trader from hauling when requested at depot.

develop
Kelly Martin 2012-04-30 09:01:48 -05:00
parent 7c606da636
commit e7c55ab6e1
1 changed files with 2 additions and 0 deletions

@ -1130,6 +1130,8 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
std::vector<int> hauler_ids;
for (int dwarf = 0; dwarf < n_dwarfs; dwarf++)
{
if (dwarf_info[dwarf].trader && trader_requested)
continue;
if (dwarf_info[dwarf].state == IDLE || dwarf_info[dwarf].state == BUSY)
hauler_ids.push_back(dwarf);
}