Don't put clothing held in hands into the first 3 columns of list-equipped.

For some reason that stuff has INV_WEAPON and shows up in the
report, so since it does, put it in the weapon column.
develop
Alexander Gavrilov 2012-03-02 11:19:30 +04:00
parent ae655daf1a
commit da3ac54af7
1 changed files with 6 additions and 0 deletions

@ -505,6 +505,12 @@ static void printEquipped(Core *c, df::unit *unit, bool all)
// Add to the right table // Add to the right table
int count = item->getStackSize(); int count = item->getStackSize();
if (is_weapon)
{
weapons[name] += count;
continue;
}
switch (iinfo.type) { switch (iinfo.type) {
case item_type::HELM: case item_type::HELM:
head[name] += count; head[name] += count;