Merge branch 'develop' of https://github.com/dfhack/dfhack into develop

develop
lethosor 2015-09-07 21:26:14 -04:00
commit b2b1a6e844
2 changed files with 5 additions and 4 deletions

@ -182,7 +182,7 @@ message UnitDefinition
optional uint32 flags1 = 8;
optional uint32 flags2 = 9;
optional uint32 flags3 = 10;
optional bool is_soldier = 11;
}
message UnitList

@ -965,6 +965,7 @@ static command_result GetUnitList(color_ostream &stream, const EmptyMessage *in,
send_unit->set_flags1(unit->flags1.whole);
send_unit->set_flags2(unit->flags2.whole);
send_unit->set_flags3(unit->flags3.whole);
send_unit->set_is_soldier(ENUM_ATTR(profession, military, unit->profession));
}
return CR_OK;
}