Add soldier state to remotefortressreader.cpp

develop
Japa 2015-09-07 22:41:24 +05:30
parent 07c601be99
commit 3b36a23404
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;
}