follow rename Carried->Hauled in df-structures unit inventory mode

develop
jj 2012-10-22 19:37:12 +02:00
parent 46938625fd
commit cfbdf47f6e
2 changed files with 4 additions and 4 deletions

@ -161,7 +161,7 @@ DFHACK_EXPORT bool moveToGround(MapExtras::MapCache &mc, df::item *item, df::coo
DFHACK_EXPORT bool moveToContainer(MapExtras::MapCache &mc, df::item *item, df::item *container);
DFHACK_EXPORT bool moveToBuilding(MapExtras::MapCache &mc, df::item *item, df::building_actual *building,int16_t use_mode);
DFHACK_EXPORT bool moveToInventory(MapExtras::MapCache &mc, df::item *item, df::unit *unit,
df::unit_inventory_item::T_mode mode = df::unit_inventory_item::Carried, int body_part = -1);
df::unit_inventory_item::T_mode mode = df::unit_inventory_item::Hauled, int body_part = -1);
/// Makes the item removed and marked for garbage collection
DFHACK_EXPORT bool remove(MapExtras::MapCache &mc, df::item *item, bool no_uncat = false);

@ -321,7 +321,7 @@ std::string getUnitNameProfession(df::unit *unit)
}
enum InventoryMode {
INV_CARRIED,
INV_HAULED,
INV_WEAPON,
INV_WORN,
INV_IN_CONTAINER
@ -355,8 +355,8 @@ void listUnitInventory(std::vector<inv_item> *list, df::unit *unit)
InventoryMode mode;
switch (item->mode) {
case df::unit_inventory_item::Carried:
mode = INV_CARRIED;
case df::unit_inventory_item::Hauled:
mode = INV_HAULED;
break;
case df::unit_inventory_item::Weapon:
mode = INV_WEAPON;